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)
 inc_func_common.asp - URL Parsing
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 3

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 15 March 2003 :  18:40:32  Show Profile
Went with Richards suggested fix.

Fixed in 3.4.04.

Support Snitz Forums
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 15 March 2003 :  18:43:53  Show Profile
we might need to come up with something different, see here:

http://forum.snitz.com/forum/topic.asp?TOPIC_ID=42579

Maybe we should support vbscript Regular Expressions? Have v3.4.03 be the last version that uses javascript Regular Expressions?
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 15 March 2003 :  18:53:22  Show Profile
Reverted previous changes and added

	(UCase(Right(strArray(Counter-1), 1)) <> "-") and _
	(UCase(Right(strArray(Counter-1), 1)) <> "=") and _

as suggested in v4b04 alpha 04...

Stop the WAR!
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 15 March 2003 :  18:56:36  Show Profile
But servers running the older versions of the scripting engine won't be able to use it. It had been suggested we do a check to see if regular expressions are supported by the server and if so use the Regular Expressions, otherwise, go with the older way of checking for a url.

Support Snitz Forums
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 15 March 2003 :  19:07:52  Show Profile
I'd support any move towards using higher level of technology, provided that we also check the availability of them...

Stop the WAR!
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 15 March 2003 :  19:53:35  Show Profile
I would like to find a solution that covers everything. It seems like something else is always popping up and we have to find a way around it.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 15 March 2003 :  21:02:43  Show Profile
If Regular Expressions are to be used, the Pattern I posted can cover most formats and can be modified easily for Url's beginning with ftp, file etc. and other Url formats.
Go to Top of Page

throwithere
Starting Member

10 Posts

Posted - 20 March 2003 :  19:32:41  Show Profile
if you would like to cover everything, how will it be possible to differentiate a decimal from an ip address?
there are so many things to consider.
urls can be:
microsoft.com
www.microsoft.com
202.138.123.45
10.0.0.1
e-www.something.com
www.something.com/www.nothing/www.asp?q1=value1&q2=value2#anchor

how about:
202.1a
202.138.123.45-b
or things like these that are really indexes of something but are not urls?
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 20 March 2003 :  19:44:00  Show Profile
the only way an IP Address will be processed as a URL is if it is prefixed by http:// , ftp:// or file:///

same thing goes for things like microsoft.com. If the www or http:// is left off, then it's not going to be processed as a URL.
Go to Top of Page

LazySumo
Starting Member

6 Posts

Posted - 21 January 2004 :  22:52:45  Show Profile
Folks, I'm still having an issue with this. I am trying to put an image link that includes an equals sign in it and it's just not working. I've added the two lines that Richard suggests above and those don't seem to help. Here is the line I am trying to add (curley brackets used so that the forums won't abuse the link):

{img}http://aaotracker.4players.de/trackersig.php?userid=106810"{/img}

However, the forum is eating that last equals sign. If you look at the source HTML that is sent to the client you see this:



How can I allow that equal? Thanks for the response.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 21 January 2004 :  23:09:27  Show Profile
image tags are processed with the ReplaceImageTags(fString) function.

In that function is the following line:

strUrlText = replace(strUrlText, "=", " ", 1, -1, 1) ' ## filter out =

you would have to comment it out to be able to use the = sign in a image url.
Go to Top of Page

LazySumo
Starting Member

6 Posts

Posted - 22 January 2004 :  01:10:00  Show Profile
Nope, even after changing that the URL isn't working. Still the same thing.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 22 January 2004 :  02:32:14  Show Profile
did you resubmit the post? Or are you just looking at a post that was already made?
Go to Top of Page

LazySumo
Starting Member

6 Posts

Posted - 22 January 2004 :  08:57:03  Show Profile
Even a new submission won't do it.
Go to Top of Page

LazySumo
Starting Member

6 Posts

Posted - 26 January 2004 :  16:37:09  Show Profile
Any other thoughts on this?
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.17 seconds. Powered By: Snitz Forums 2000 Version 3.4.07