diff --git a/app/views/wiki/locked.rhtml b/app/views/wiki/locked.rhtml index 6228c572..ad36807d 100644 --- a/app/views/wiki/locked.rhtml +++ b/app/views/wiki/locked.rhtml @@ -1,4 +1,4 @@ -<%- @title = "#{@page.plain_name} is locked" -%> +<%- @title = "#{@page.plain_name} is locked".html_safe -%>

<%= link_to_page(h(@page.locked_by.purify)) %> diff --git a/app/views/wiki/new.rhtml b/app/views/wiki/new.rhtml index 21027a14..3f3cbb8f 100644 --- a/app/views/wiki/new.rhtml +++ b/app/views/wiki/new.rhtml @@ -1,5 +1,5 @@ <%- - @title = "Creating #{CGI.escapeHTML(WikiWords.separate(@page_name))}" + @title = "Creating #{WikiWords.separate(@page_name).escapeHTML}".html_safe @content_width = 720 @hide_navigation = true -%> diff --git a/app/views/wiki/search.rhtml b/app/views/wiki/search.rhtml index e467cfaa..59d412ea 100644 --- a/app/views/wiki/search.rhtml +++ b/app/views/wiki/search.rhtml @@ -1,4 +1,4 @@ -<%- @title = "Search results for \"#{h @query}\"" -%> +<%- @title = "Search results for \"#{h @query}\"".html_safe -%> <%- unless @title_results.empty? -%>

<%= @title_results.length %> page(s) containing search string in the page name: