summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-09-15 09:11:13 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-09-15 09:11:13 +0000
commite501cb34819a301704dbe8004a4526e3400959be (patch)
tree224639efb1cafe4562c089bb532dc187f78e1f0c /app
parent04c8246b23db860d1d2d46acff2c64dc17f1e6ce (diff)
downloadredmine-e501cb34819a301704dbe8004a4526e3400959be.tar.gz
redmine-e501cb34819a301704dbe8004a4526e3400959be.zip
Special character like quote breaks wiki links (#22967).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17490 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/helpers/application_helper.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index b535d9d1b..419287533 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -780,6 +780,7 @@ module ApplicationHelper
link_project = project
esc, all, page, title = $1, $2, $3, $5
if esc.nil?
+ page = CGI.unescapeHTML(page)
if page =~ /^\#(.+)$/
anchor = sanitize_anchor_name($1)
url = "##{anchor}"