diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-09-30 02:19:38 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-09-30 02:19:38 +0000 |
commit | bafa472d7e1c3f3dd3b21d004a3a710648090129 (patch) | |
tree | aafc2eca2facd8d804ce5a5ff342a6be616592bc /app/helpers/repositories_helper.rb | |
parent | 4167a5cb0d6723c5599c7dec77d02f36fdda01ec (diff) | |
download | redmine-bafa472d7e1c3f3dd3b21d004a3a710648090129.tar.gz redmine-bafa472d7e1c3f3dd3b21d004a3a710648090129.zip |
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
Diffstat (limited to 'app/helpers/repositories_helper.rb')
-rw-r--r-- | app/helpers/repositories_helper.rb | 4 |
1 files 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', "<b>#{h property}</b>: <span>#{h properties[property]}</span>") + content << content_tag('li', "<b>#{h property}</b>: <span>#{h properties[property]}</span>".html_safe) end - content_tag('ul', content, :class => 'properties') + content_tag('ul', content.html_safe, :class => 'properties') end end |