Kunena / Kunena-Forum

Kunena Forum - Forum / Bulletin Board / Discussions component for Joomla - This is the 6.x/5.x main development branch. Please do not open issues regarding earlier versions of Kunena
https://www.kunena.org
GNU General Public License v3.0
1.75k stars 812 forks source link

BBCode Wizard for links does not properly convert square brackets in URLs #2391

Open c-schmitz opened 10 years ago

c-schmitz commented 10 years ago

When entering a link using the bbcode link button in the kunena message editor then URLs with square brackets are not properly converted.

Example Link: http://translate.limesurvey.org/projects/limesurvey2/el/default?filters[term]=Only+integer+values

When entered in the wizard you get out:

[url=http://translate.limesurvey.org/projects/limesurvey2/el/default?filters[term]=Only+integer+values]Some link[/url]

when it should be:

[url=http://translate.limesurvey.org/projects/limesurvey2/el/default?filters%5Bterm%5D=Only+integer+values]Some link[/url]

Kunena Version 3.0.5

sozzled commented 10 years ago

Hmm ... interesting.

mahagr commented 10 years ago

We need to do this in BBCode parser really as modifying input is problematic because of we would need to parse all existing messages and change them.

mahagr commented 10 years ago

Also, we can probably use JUri class to parse the URLs and then just echo the class to get properly escaped output.

github-actions[bot] commented 5 years ago

This issue is stale because it has been open 30 days with no activity.

xillibit commented 4 years ago

The workaround for now is to add manually quotes like that, tested in K5.2 :

[url="http://translate.limesurvey.org/projects/limesurvey2/el/default?filters[term]=Only+integer+values"]Some link[/url]