diff options
author | Jacopo <beschi.jacopo@gmail.com> | 2017-08-30 18:16:08 +0300 |
---|---|---|
committer | Jacopo <beschi.jacopo@gmail.com> | 2017-08-30 22:59:09 +0300 |
commit | 378ee1dac262a490e48334a3dd3300be5f1c7299 (patch) | |
tree | 95a80d0dd00de7aa8a781a53f96dcec625e5dd44 /app/models/wiki_page.rb | |
parent | f35d7d7f6ea04a38da822db902ad24108dfe94a2 (diff) |
Unescape HTML characters in Wiki title
The special characters of a wiki title are now escaped correctly.
Diffstat (limited to 'app/models/wiki_page.rb')
-rw-r--r-- | app/models/wiki_page.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/wiki_page.rb b/app/models/wiki_page.rb index 5c7c2204374..f2315bb3dbb 100644 --- a/app/models/wiki_page.rb +++ b/app/models/wiki_page.rb @@ -84,7 +84,7 @@ class WikiPage # The formatted title of this page. def title if @attributes[:title] - self.class.unhyphenize(@attributes[:title]) + CGI.unescape_html(self.class.unhyphenize(@attributes[:title])) else "" end |