markdown: special character like ' (quote) breaks wiki links
Affected version: 3.1.5, 3.2.2, at least
- create a new wiki page
- insert a link with a quote inside. For ex. : This is a link'test
I'm trying to upgrade redmine from 2.4.2 to 3.1.5 (or 3.2.2) and I've an issue with the wiki links.
With the version 2.4.2, using quote "'" in the wiki links was working (using the redmine_redcarpet_formatter).
For example :
[[This is a link'test]]
With the version 3.1.5 or 3.2.2 the same code break the wiki link during html formatting. The output is something like
This is a link&
I suspect there is a problem during the text escaping because the function ``parse_wiki_links`` in app/helpers/application_helper consider that there is an anchor. The supposed anchor come from the html escaped form of the quote (which is ').
In French language, this is a major problem because the quote character is often used.
Philippe Le Brouster.
#3 Updated by Philippe Le Brouster over 1 year ago
The problem exists only with the markdown text format. The textile format is ok.
Did you test with this markdown text format ?
I've just set a vanilla redmine 3.2.3 (tarball from the website). And I can reproduce this bug.
Philippe Le Brouster
#5 Updated by Adrien Crivelli over 1 year ago
I am also affected by this bug on Redmine 3.0.0.
I'd say it should be quite high on the priority list, because it will break things for a lot of french users, and possibly other languages too. But it will also break in English, as seen in those examples:
[[Jack & Coke]] [[a "quoted" name]] [[le français, c'est super]] [[broken < less]] [[broken > more]] [[also <broken> link]]
Jack & Coke a "quoted" name le français, c& broken < less broken > more also link
Jack & Coke a "quoted" name le français, c'est super broken < less broken > more also broken link