]> source.dussan.org Git - redmine.git/commitdiff
HTML escape at link_to_revision() of app/helpers/application_helper.rb (#9252)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 16 Sep 2011 01:51:09 +0000 (01:51 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 16 Sep 2011 01:51:09 +0000 (01:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7247 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb

index affa6465bc4d52c354f627fa7cb7f3e818c8820a..93f40e7f1e555d672ee7186967f02ff41ce6d47b 100644 (file)
@@ -106,7 +106,7 @@ module ApplicationHelper
     text = options.delete(:text) || format_revision(revision)
     rev = revision.respond_to?(:identifier) ? revision.identifier : revision
 
-    link_to(text, {:controller => 'repositories', :action => 'revision', :id => project, :rev => rev},
+    link_to(h(text), {:controller => 'repositories', :action => 'revision', :id => project, :rev => rev},
             :title => l(:label_revision_id, format_revision(revision)))
   end