cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect parsing of untagged numerical URLs

spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Incorrect parsing of untagged numerical URLs

If I post the untagged text http://192.168.1.1 it comes out as http://192.168.1.1 with the highlighting broken and the link pointing to http://192.0.0.168.
On the other hand:
If I post the tagged text [url]http://192.168.1.1[/url] it comes out as http://192.168.1.1 with highlighting correct and the link correct too.
Since the untagged text http://www.bbc.co.uk is highlighted and linked correctly it seems there's a bug in the parsing of uncoded numerical URLs.
David
5 REPLIES 5
MikeWhitehead
Grafter
Posts: 748
Registered: ‎19-08-2007

Re: Incorrect parsing of untagged numerical URLs

Seems the parsing is working if it is ended with a recognised TLD (correct me if I'm wrong)
MikeWhitehead
Grafter
Posts: 748
Registered: ‎19-08-2007

Re: Incorrect parsing of untagged numerical URLs

Sorry for the bluntness of my previous post; I was rushing out of the house at the time.
I meant to follow it on with a question to anyone who has seen the source to the forum software since I haven't used it, does automatic URL parsing occur using a conditional statement looking for a recognised TLD suffixed on the end?
MikeWhitehead
Grafter
Posts: 748
Registered: ‎19-08-2007

Re: Incorrect parsing of untagged numerical URLs

The first two octets may be assumed to be directory + domain, ie "www.plus". I'll download a copy of it and see if I can locate it.
MikeWhitehead
Grafter
Posts: 748
Registered: ‎19-08-2007

Re: Incorrect parsing of untagged numerical URLs

Yea I think that's the culprit. I have it downloaded now but don't have time to look at the code yet long enough to pinpoint any specific problem with it. Will look closer tomorrow and get back to you.
MikeWhitehead
Grafter
Posts: 748
Registered: ‎19-08-2007

Re: Incorrect parsing of untagged numerical URLs

I've had a look and I don't see it stripping numbers for any reason. However, to get around this happening, simply type the IP address as this: http://192.168.1.1/ . The trailing forwardslash will cause the link to be parsed correctly.