From bafa472d7e1c3f3dd3b21d004a3a710648090129 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Fri, 30 Sep 2011 02:19:38 +0000 Subject: [PATCH] Rails3: helper: use html_safe at render_properties(properties) of RepositoriesHelper Contributed by Sylvain Utard. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7547 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/repositories_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/repositories_helper.rb b/app/helpers/repositories_helper.rb index 85bcb485e..703277adb 100644 --- a/app/helpers/repositories_helper.rb +++ b/app/helpers/repositories_helper.rb @@ -37,9 +37,9 @@ module RepositoriesHelper unless properties.nil? || properties.empty? content = '' properties.keys.sort.each do |property| - content << content_tag('li', "#{h property}: #{h properties[property]}") + content << content_tag('li', "#{h property}: #{h properties[property]}".html_safe) end - content_tag('ul', content, :class => 'properties') + content_tag('ul', content.html_safe, :class => 'properties') end end