Defect #22967 » fix_for_22967-v2.diff
| 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
|
||
- « Previous
- 1
- …
- 4
- 5
- 6
- Next »