]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4225 escape rule titles in issue drilldown
authorSimon Brandhof <simon.brandhof@gmail.com>
Tue, 4 Jun 2013 22:32:26 +0000 (00:32 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Tue, 4 Jun 2013 22:32:26 +0000 (00:32 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/drilldown/issues.html.erb

index 8b5e5bdcecdcc30c0196e3bfa46e8a0284c12d12..b553ca101f609702d9e41e44d076573853ae5c4b 100644 (file)
@@ -91,7 +91,7 @@
                 <img src="<%= ApplicationController.root_context -%>/images/priority/<%= rule_measure.rule_priority -%>.png"/>
               </td>
               <td>
-                <%= link_to(rule.name, {:controller => :drilldown, :action => :issues, :id => @resource.id, :rule => (selected ? nil : rule.key),
+                <%= link_to(h(rule.name), {:controller => :drilldown, :action => :issues, :id => @resource.id, :rule => (selected ? nil : rule.key),
                                         :rule_sev => (selected ? nil : rule_measure.severity), :sid => nil, :severity => @severity, :period => @period,
                                         :rids => (selected ? nil : @selected_rids)}, :title => "#{rule.plugin_name}: #{rule.plugin_rule_key}") -%>
               </td>