]> source.dussan.org Git - redmine.git/commitdiff
Rails3: helper: use html_safe at render_changes_tree(tree) of RepositoriesHelper
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 30 Sep 2011 00:56:17 +0000 (00:56 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 30 Sep 2011 00:56:17 +0000 (00:56 +0000)
Contributed by Sylvain Utard.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7545 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/repositories_helper.rb

index 533a776301ac56f94bf220da7ed66ca0d4c8c35c..85bcb485eac7194671be1dd18d56595f28b63a56 100644 (file)
@@ -103,17 +103,17 @@ module RepositoriesHelper
                              :path => path_param,
                              :rev => @changeset.identifier) unless c.action == 'D'
         text << " - #{h(c.revision)}" unless c.revision.blank?
-        text << ' (' + link_to(l(:label_diff), :controller => 'repositories',
+        text << ' ('.html_safe + link_to(l(:label_diff), :controller => 'repositories',
                                        :action => 'diff',
                                        :id => @project,
                                        :path => path_param,
-                                       :rev => @changeset.identifier) + ') ' if c.action == 'M'
-        text << ' ' + content_tag('span', h(c.from_path), :class => 'copied-from') unless c.from_path.blank?
+                                       :rev => @changeset.identifier) + ') '.html_safe if c.action == 'M'
+        text << ' '.html_safe + content_tag('span', h(c.from_path), :class => 'copied-from') unless c.from_path.blank?
         output << "<li class='#{style}'>#{text}</li>"
       end
     end
     output << '</ul>'
-    output
+    output.html_safe
   end
 
   def to_utf8(str)