From 3df586d22dd8fc09edf7360ad17f1667f81b7230 Mon Sep 17 00:00:00 2001 From: Etienne Massip Date: Thu, 24 Nov 2011 19:47:36 +0000 Subject: [PATCH] Html safe wiki page title. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7916 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 0f2c86746..6878932ef 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -596,7 +596,7 @@ module ApplicationHelper url_for(:only_path => only_path, :controller => 'wiki', :action => 'show', :project_id => link_project, :id => wiki_page_id, :anchor => anchor) end end - link_to(title || h(page), url, :class => ('wiki-page' + (wiki_page ? '' : ' new'))) + link_to(title.present? ? title.html_safe : h(page), url, :class => ('wiki-page' + (wiki_page ? '' : ' new'))) else # project or wiki doesn't exist all.html_safe -- 2.39.5