Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Bug in [url] tag?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

joatham
Junior Member

United Kingdom
169 Posts

Posted - 17 June 2003 :  04:46:11  Show Profile  Visit joatham's Homepage
I've just noticed that if you include a url with semicolons in a url forum code, the semicolons are converted to a space (%20) when opening the link. This doesn't happen if the link is typed without the url forum code though. Here's an example, when in the url code:-

This is the url in a url forum code

This is the same url without the url forum code, which loads fine (the ";" characters are not replaced with %20):-

http://support.microsoft.com/default.aspx?scid=fh;EN-US;kblink

Is this a known bug? It happens in V3.4.03

John

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 17 June 2003 :  04:55:04  Show Profile
no, not really a bug, the 2 different links are just processed by different functions.

if you use the [url] [/url] tags, then the link is processed by the ReplaceURLs function. If you don't use them, then the link is processed by the edit_hrefs javascript function.

if you want to allow semi-colons in links when using the [url] [/url] tags, then you'll just need to edit the ReplaceURLs function in the inc_func_common.asp file and remove or comment out the following line:
strArray2(0) = replace(strArray2(0), ";", " ", 1, -1, 1) ' ## filter out ;
Go to Top of Page

joatham
Junior Member

United Kingdom
169 Posts

Posted - 17 June 2003 :  11:20:51  Show Profile  Visit joatham's Homepage
Thanks for that Richard, I will do that. Do you know what's the reason for removing semicolon from the url in ReplaceURLS ?
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 17 June 2003 :  11:26:46  Show Profile
We just removed any character that we thought might be used for malicious purposes.
Go to Top of Page

joatham
Junior Member

United Kingdom
169 Posts

Posted - 17 June 2003 :  17:13:24  Show Profile  Visit joatham's Homepage
Ah, understood. I think I'll probably leave it as is then, I've been using Snitz a few years now and it's the first time I've come across it...
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07