From: David Gageot Date: Thu, 12 Jul 2012 13:07:18 +0000 (+0200) Subject: Fix rule escaping X-Git-Tag: 3.2~107 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9f0d0f717aa77ce996d40d014f1a82f7dcf76348;p=sonarqube.git Fix rule escaping --- diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/edit.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/edit.html.erb index d7170ce77b8..97d21069baf 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/edit.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/edit.html.erb @@ -44,8 +44,8 @@ <%= parameter.name %>: - <%= param_value_input(parameter, "#{h parameter.default_value}", {:name => "rule_param[#{u parameter.name }]", :size => '80x10'}) -%> - <%= parameter.description %> + <%= param_value_input(parameter, "#{h parameter.default_value}", {:name => "rule_param[#{h parameter.name }]", :size => '80x10'}) -%> + <%= h parameter.description %> <% end %> diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/new.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/new.html.erb index 1c0518d69cf..55c787a11b3 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/new.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/rules_configuration/new.html.erb @@ -30,8 +30,8 @@ <%= parameter.name %>: - <%= param_value_input(parameter, "", {:name => "rule_param[#{u parameter.name}]", :size => '80x10'}) -%> - <%= parameter.description %> + <%= param_value_input(parameter, "", {:name => "rule_param[#{h parameter.name}]", :size => '80x10'}) -%> + <%= h parameter.description %> <% end %>