MyBB Community Forums
[F] url with brackets [C-Michael83] - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: Archived Bug Reports (https://community.mybb.com/forum-74.html)
+------ Forum: MyBB 1.4.2 (https://community.mybb.com/forum-100.html)
+------ Thread: [F] url with brackets [C-Michael83] (/thread-38597.html)

Pages: 1 2


[F] url with brackets [C-Michael83] - RII - 2008-10-04

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=topdetails&no_cache=1&uid=447&tx_ttnews[swords]=Lufthansa

Someone has a solution?

Thanks
RII


RE: url with brackets - Yumi - 2008-10-04

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=topdetails&no_cache=1&uid=447&tx_ttnews%5Bswords%5D=Lufthansa )


RE: url with brackets - Martin M. - 2008-10-04

(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=topdetails&no_cache=1&uid=447&tx_ttnews%5Bswords%5D=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.


RE: [B] url with brackets - Yumi - 2008-10-05

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/


RE: [B] url with brackets - Martin M. - 2008-10-06

(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.


RE: [B] url with brackets - Dennis Tsang - 2008-10-06

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


RE: [B] url with brackets - Martin M. - 2008-10-06

(2008-10-06, 07:52 AM)DennisTT Wrote: http://www.airlinetest.com/index.php?id=topdetails&no_cache=1&uid=447&tx_ttnews[swords]=Lufthansa

Okey so it doesn't work inside the url tags either. Shouldn't it?


RE: [B] url with brackets - Yumi - 2008-10-06

(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).


RE: [B] url with brackets - Martin M. - 2008-10-07

(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 [].


RE: [F] url with brackets - Yumi - 2008-10-18

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!