Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - Problem with urls containing | or []
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Problem with urls containing | or []

 Post Reply Post Reply Page  <12
Author
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post Posted: 30 December 2005 at 12:54am
That's a useful bit of info. Adding that code to my snippets.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
graper View Drop Down
Groupie
Groupie


Joined: 07 April 2005
Location: China
Status: Offline
Points: 70
Post Options Post Options   Thanks (0) Thanks(0)   Quote graper Quote  Post ReplyReply Direct Link To This Post Posted: 31 December 2005 at 12:20am
WOW
WWF论坛讨论QQ群:2652358
WWF论坛讨论:Http://Www.CNWWF.Com/Forum/
Back to Top
Gando View Drop Down
Groupie
Groupie


Joined: 30 June 2005
Location: Turkey
Status: Offline
Points: 52
Post Options Post Options   Thanks (0) Thanks(0)   Quote Gando Quote  Post ReplyReply Direct Link To This Post Posted: 09 January 2006 at 11:23pm

Hello,

Where i have to add this code? I added functions_filters.asp inside but doesn't work? Confused  I want to use only this | character..
 
Thanx a lot..
 
 
If blnAdmin = false Then
strInputEntry = Replace(strInputEntry, "[", "%5B", 1, -1, 1)
strInputEntry = Replace(strInputEntry, "]", "%5D", 1, -1, 1)
strInputEntry = Replace(strInputEntry, "(", "%28", 1, -1, 1)
strInputEntry = Replace(strInputEntry, ")", "%29", 1, -1, 1)
strInputEntry = Replace(strInputEntry, "{", "%7B", 1, -1, 1)
strInputEntry = Replace(strInputEntry, "}", "%7D", 1, -1, 1)
strInputEntry = Replace(strInputEntry, "<", "%3C", 1, -1, 1)
strInputEntry = Replace(strInputEntry, ">", "%3E", 1, -1, 1)
strInputEntry = Replace(strInputEntry, "|", "%7C", 1, -1, 1)
End If
Back to Top
JJLatWebWiz View Drop Down
Groupie
Groupie
Avatar

Joined: 02 March 2005
Location: United States
Status: Offline
Points: 136
Post Options Post Options   Thanks (0) Thanks(0)   Quote JJLatWebWiz Quote  Post ReplyReply Direct Link To This Post Posted: 11 January 2006 at 4:39am

These lines already exist in functions_filters.asp.  Look for "function formatLink".  Inside this function, you will see the lines, but with empty double-quotes.  Replace the empty double-quotes with the appropriate escape code.

If you're going to let only administrators post links with these characters, then make it so the blnAdmin links use the escaped codes and regular users still use the empty double-quotes.  Those characters should technically be escaped in a URL anyway.
p.s. I'm not affiliated with Web Wiz Guide in any way. I'm just an average Web Wiz user repaying my debt for the use of their fine forum by trying to help other Web Wiz Guide users.
Back to Top
 Post Reply Post Reply Page  <12

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.