Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Strange automatic amends in links
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Strange automatic amends in links

 Post Reply Post Reply
Author
dudboy View Drop Down
Newbie
Newbie


Joined: 01 August 2003
Location: United Kingdom
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote dudboy Quote  Post ReplyReply Direct Link To This Post Topic: Strange automatic amends in links
    Posted: 23 January 2004 at 7:31am

I have someone posting a link on our site which requires capital letters in the link for it to work.

For some reason the forum changes this JOCONNELL100 to JOConNELL100 and prevents the link from working

See here

http://www.clubgti.com/forum/forum_posts.asp?TID=9393&PN =1&TPN=1

Any ideas ?

Many thanks

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2004 at 8:29am
Probally the security filters removing anything that could be used to force malicious code into the forum.

You'll just have to work around it, by linking to a different image or changing the name.
Back to Top
dudboy View Drop Down
Newbie
Newbie


Joined: 01 August 2003
Location: United Kingdom
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote dudboy Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2004 at 8:49am

Originally posted by -boRg- -boRg- wrote:

Probally the security filters removing anything that could be used to force malicious code into the forum.

You'll just have to work around it, by linking to a different image or changing the name.

Does this mean that anyone with a name like conner if they use it in a link willnot work of is it just capitalls CONNER ?

Many thanks

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2004 at 9:02am
Servers are not usually case sesitive when it comes to URL's infact this is the first time I've seen a server that uses case sesitive URL's, so usually it won't matter.

Edited by -boRg-
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2004 at 9:10am
Incase this happens again with case sesitive URL's change the formatLink function in the functions_filters.asp file to the following:-

'********************************************
'***          Format Links         *****
'********************************************

'Format links funtion
Private Function formatLink(ByVal strInputEntry)

    'Remove malisous charcters from links and images
    strInputEntry = Replace(strInputEntry, "document.cookie", ".", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "javascript:", "javascript ", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "vbscript:", "vbscript ", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "javascript :", "javascript ", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "vbscript :", "vbscript ", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "[", "", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "]", "", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "(", "", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, ")", "", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "{", "", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "}", "", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "<", "", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, ">", "", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "|", "", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "script", "&#115;cript", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "SCRIPT", "&#083;CRIPT", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "Script", "&#083;cript", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "script", "&#083;cript", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "object", "&#111;bject", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "OBJECT", "&#079;BJECT", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "Object", "&#079;bject", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "object", "&#079;bject", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "applet", "&#097;pplet", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "APPLET", "&#065;PPLET", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "Applet", "&#065;pplet", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "applet", "&#065;pplet", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "embed", "&#101;mbed", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "EMBED", "&#069;MBED", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "Embed", "&#069;mbed", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "embed", "&#069;mbed", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "document", "&#100;ocument", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "DOCUMENT", "&#068;OCUMENT", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "Document", "&#068;ocument", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "document", "&#068;ocument", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "cookie", "&#099;ookie", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "COOKIE", "&#067;OOKIE", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "Cookie", "&#067;ookie", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "cookie", "&#067;ookie", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "event", "&#101;vent", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "EVENT", "&#069;VENT", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "Event", "&#069;vent", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "event", "&#069;vent", 1, -1, 1)
    strInputEntry = Replace(strInputEntry, "on", "&#111;n", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "ON", "&#079;N", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "On", "&#079;n", 1, -1, 0)
    strInputEntry = Replace(strInputEntry, "on", "&#111;n", 1, -1, 1)

    'Return
    formatLink = strInputEntry
End Function

Back to Top
dudboy View Drop Down
Newbie
Newbie


Joined: 01 August 2003
Location: United Kingdom
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote dudboy Quote  Post ReplyReply Direct Link To This Post Posted: 23 January 2004 at 9:45am

Many thanks

That has fixed the problem his name now works.

Does this reduce any security that could cause problems ?

Back to Top
 Post Reply Post Reply

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.