diff --git a/app/models/page.rb b/app/models/page.rb index e66e0415..e958ccfe 100644 --- a/app/models/page.rb +++ b/app/models/page.rb @@ -82,7 +82,7 @@ class Page < ActiveRecord::Base # Returns the original wiki-word name as separate words, so "MyPage" becomes "My Page". def plain_name - web.brackets_only? ? CGI.escapeHTML(name) : CGI.escapeHTML(WikiWords.separate(name)) + web.brackets_only? ? CGI.escapeHTML(name).as_utf8 : CGI.escapeHTML(WikiWords.separate(name)).as_utf8 end LOCKING_PERIOD = 30.minutes