MyBB Community Forums

Full Version: [F] url with brackets [C-Michael83]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
that must be a bug:

urls containing brackets are not completley shown
Example:

http://www.airlinetest.com/index.php?id=topdetails&no_cache=1&uid=447&tx_ttnews[swords]=Lufthansa

as a link: http://www.airlinetest.com/index.php?id=...&tx_ttnews[swords]=Lufthansa

Someone has a solution?

Thanks
RII
Those characters aren't valid in URLs, so it's not a bug...

(most browsers convert "[" to "%5B" and "]" to "%5D" - therefore, the correct URL for the above is:
http://www.airlinetest.com/index.php?id=...=Lufthansa )
(2008-10-04, 01:00 PM)ZiNgA BuRgA Wrote: [ -> ]Those characters aren't valid in URLs, so it's not a bug...

(most browsers convert "[" to "%5B" and "]" to "%5D" - therefore, the correct URL for the above is:
http://www.airlinetest.com/index.php?id=...=Lufthansa )

Yea most browsers convert them so why shouldn't it be fixed?
Convert [] to &5B and %5D, so that users don't have to. And if you just write [] in an url the browser will recognize it so I don't see why this shouldn't be fixed.
We can't fix everything.
It's problematic - there's no way to tell if the brackets inserted for the auto URL was intentional or not.

For example:

Visit http://google.com[best search engine]
http://example.com(my website)
https://somesite.com/
(2008-10-05, 11:19 PM)ZiNgA BuRgA Wrote: [ -> ]We can't fix everything.
It's problematic - there's no way to tell if the brackets inserted for the auto URL was intentional or not.

For example:

Visit http://google.com[best search engine]
http://example.com(my website)
https://somesite.com/

oh, I thought it was when using the [url] tag.
Anyways, people should be able to use space after a url anyways.
(2008-10-06, 07:52 AM)DennisTT Wrote: [ -> ]http://www.airlinetest.com/index.php?id=...=Lufthansa

Okey so it doesn't work inside the url tags either. Shouldn't it?
(2008-10-06, 07:33 AM)CraKteR Wrote: [ -> ]
(2008-10-05, 11:19 PM)ZiNgA BuRgA Wrote: [ -> ]We can't fix everything.
It's problematic - there's no way to tell if the brackets inserted for the auto URL was intentional or not.

For example:

Visit http://google.com[best search engine]
http://example.com(my website)
https://somesite.com/

oh, I thought it was when using the [url] tag.
Anyways, people should be able to use space after a url anyways.
Possibly, but then [http://google.com] would break...

Inside the URL tag should probably be fixed though I guess, though I like sticking to URL standards. (easy fix, just remove the []'s from the regex).
(2008-10-06, 10:40 PM)ZiNgA BuRgA Wrote: [ -> ]
(2008-10-06, 07:33 AM)CraKteR Wrote: [ -> ]
(2008-10-05, 11:19 PM)ZiNgA BuRgA Wrote: [ -> ]We can't fix everything.
It's problematic - there's no way to tell if the brackets inserted for the auto URL was intentional or not.

For example:

Visit http://google.com[best search engine]
http://example.com(my website)
https://somesite.com/

oh, I thought it was when using the [url] tag.
Anyways, people should be able to use space after a url anyways.
Possibly, but then [http://google.com] would break...

Inside the URL tag should probably be fixed though I guess, though I like sticking to URL standards. (easy fix, just remove the []'s from the regex).

Well then you should convert the []'s. As they are supported. And every browser converts them to [] and if you copy it it will be [].
Okay, I've added some URL entity fixes for URLs inside [url] tags. Would anyone be able to confirm that these changes don't break anything?
(replace inc/class_parser.php with the supplied file)

Thanks!
Pages: 1 2