Remove last vestige of CGI.unescapeHTML
This commit is contained in:
parent
b6fbf039f4
commit
5c20871ec4
|
@ -1,3 +1,5 @@
|
||||||
|
require 'stringsupport'
|
||||||
|
|
||||||
class AbstractUrlGenerator
|
class AbstractUrlGenerator
|
||||||
|
|
||||||
def initialize(controller)
|
def initialize(controller)
|
||||||
|
@ -17,14 +19,14 @@ class AbstractUrlGenerator
|
||||||
else
|
else
|
||||||
known_page = web.has_file?(name)
|
known_page = web.has_file?(name)
|
||||||
description = web.description(name)
|
description = web.description(name)
|
||||||
description = CGI.escapeHTML(CGI.unescapeHTML(description)) if description
|
description = description.unescapeHTML.escapeHTML if description
|
||||||
end
|
end
|
||||||
if (text == name)
|
if (text == name)
|
||||||
text = description || text
|
text = description || text
|
||||||
else
|
else
|
||||||
text = text || description
|
text = text || description
|
||||||
end
|
end
|
||||||
text = CGI.escapeHTML(CGI.unescapeHTML(text || WikiWords.separate(name)))
|
text = (text || WikiWords.separate(name)).unescapeHTML.escapeHTML
|
||||||
|
|
||||||
case link_type
|
case link_type
|
||||||
when :show
|
when :show
|
||||||
|
|
Loading…
Reference in a new issue