Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2017-08-30 18:16:08 +0300
committerJacopo <beschi.jacopo@gmail.com>2017-08-30 22:59:09 +0300
commit378ee1dac262a490e48334a3dd3300be5f1c7299 (patch)
tree95a80d0dd00de7aa8a781a53f96dcec625e5dd44 /app/models/wiki_page.rb
parentf35d7d7f6ea04a38da822db902ad24108dfe94a2 (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.rb2
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