MyBB Community Forums

Full Version: MyBB breaks url unicode encoded links (1.6, 1.8)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This link: http://wiki.lingvoforum.net/w/Английский_язык is copied by browsers as

http://wiki.lingvoforum.net/w/%D0%90%D0%BD%D0%B3%D0%BB%D0%B8%D0%B9%D1%81%D0%BA%D0%B8%D0%B9_%D1%8F%D0%B7%D1%8B%D0%BA

But MyBB messes it:
http://wiki.lingvoforum.net/w/%D0%90%D0%...1%8B%D0%BA

it is changed to

http://wiki.lingvoforum.net/w/%D0%90%D0%BD%D0%B3%D0%BB%D0%B8%D0%B9%D1%81%D0%BA%D0%B8%D0%B9_%D1%8F%D0%B7%D1%8B%%E2%80%8BD0%BA


What can be done to stop this behavior?

I checked "mycode_parse_url" function, it returns good url, I can't find what garbages url afterwards.
disable word wrapping or crank it up to allow longer unwrapped strings

alternatively, make your browser copy it as unicode. In Firefox, that's network.standard-url.escape-utf8=false in about:config or something like that.
Yep, I just disabled wrapping and now it is working. Thanks for help.

(2014-10-21, 04:21 PM)frostschutz Wrote: [ -> ]alternatively, make your browser copy it as unicode. In Firefox, that's network.standard-url.escape-utf8=false in about:config or something like that.
Great hack, I used to add space after url, then I can copy it as Unicode, it is much better now.
But I can't make all users to change this.

Btw, why this link here is not shorted to smth like this - http://wiki.lingvoforum.net/w/%D0%9F%D1%...0%BA%D0%B0 ? As in my forum.

(2014-10-21, 01:57 PM)Qiao Wrote: [ -> ]http://wiki.lingvoforum.net/w/%D0%90%D0%...1%8B%D0%BA