]> source.dussan.org Git - redmine.git/commitdiff
Rails3: helper: use html_safe at render_properties(properties) of RepositoriesHelper
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 30 Sep 2011 02:19:38 +0000 (02:19 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 30 Sep 2011 02:19:38 +0000 (02:19 +0000)
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

index 85bcb485eac7194671be1dd18d56595f28b63a56..703277adb65fb0be1fbd094f94a50bccaf8f214a 100644 (file)
@@ -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