Project

General

Profile

Actions

Defect #22967

closed

Special character like quote breaks wiki links

Added by Philippe Le Brouster over 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Category:
Wiki
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

Affected version: 3.1.5, 3.2.2, at least
To reproduce:

Explanation:

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 &#39).

In French language, this is a major problem because the quote character is often used.

Regards,
Philippe Le Brouster.


Files

link.png (11 KB) link.png Toshi MARUYAMA, 2016-06-22 16:51
wiki_edit.png (5.87 KB) wiki_edit.png Content when editing Philippe Le Brouster, 2016-06-23 14:55
wiki_content.png (8.63 KB) wiki_content.png Content when viewing Philippe Le Brouster, 2016-06-23 14:55
tests_for_special_characters_breaks_wiki_links.patch (2.31 KB) tests_for_special_characters_breaks_wiki_links.patch Marius BĂLTEANU, 2018-03-31 14:58
fix_for_22967.patch (965 Bytes) fix_for_22967.patch Marius BĂLTEANU, 2018-03-31 15:17
fix_for_22967-v2.diff (868 Bytes) fix_for_22967-v2.diff patch for r17346 Go MAEDA, 2018-05-22 12:53

Related issues

Has duplicate Redmine - Defect #10413: Creating wiki pages with special characters may be problematicClosed

Actions
Has duplicate Redmine - Defect #11985: Version Wiki page '#' gets escapedClosed

Actions
Actions

Also available in: Atom PDF