Project

General

Profile

Defect #22967 » fix_for_22967-v2.diff

patch for r17346 - Go MAEDA, 2018-05-22 12:53

View differences:

app/helpers/application_helper.rb (working copy)
require 'forwardable'
require 'cgi'
require 'htmlentities'
module ApplicationHelper
include Redmine::WikiFormatting::Macros::Definitions
......
link_project = project
esc, all, page, title = $1, $2, $3, $5
if esc.nil?
page = decode_html_entities(page)
if page =~ /^\#(.+)$/
anchor = sanitize_anchor_name($1)
url = "##{anchor}"
......
name = identifier.gsub(%r{^"(.*)"$}, "\\1")
return CGI.unescapeHTML(name)
end
def decode_html_entities(page)
@coder ||= HTMLEntities.new()
@coder.decode(page)
end
end
(6-6/6)