From 27021a92695750e52ccaed322b56c43e4c461eee Mon Sep 17 00:00:00 2001 From: Julien Lancelot Date: Mon, 12 Aug 2013 15:55:35 +0200 Subject: [PATCH] SONAR-4269 Use html_escape function on some input values to prevent XSS --- .../WEB-INF/app/views/issues/_sidebar.html.erb | 6 +++--- .../WEB-INF/app/views/measures/_sidebar.html.erb | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_sidebar.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_sidebar.html.erb index bb7714d86f4..f39f959b840 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_sidebar.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/issues/_sidebar.html.erb @@ -4,10 +4,10 @@
<% if @filter && @filter.id %> - + <% end %> - - + +
  • class="marginbottom5"> <% disabled = @filter.criteria['fromDate'].blank? && @filter.criteria['toDate'].blank? %> <%= message('measure_filter.criteria.from_date') -%>:
    - > + >
    <%= message 'measure_filter.criteria.to_date' -%>:
    - >
    + >
    <%= message 'measure_filter.criteria.date_format' -%>
  • @@ -191,10 +191,10 @@
  • class="marginbottom5"> <% disabled = @filter.criteria['ageMinDays'].blank? && @filter.criteria['ageMaxDays'].blank? %> <%= message 'measure_filter.criteria.age.more_than' -%>:
    - > <%= message 'measure_filter.criteria.age.days_ago' -%> + > <%= message 'measure_filter.criteria.age.days_ago' -%>
    <%= message 'measure_filter.criteria.age.within_last' -%>:
    - > <%= message 'measure_filter.criteria.age.days' -%> + > <%= message 'measure_filter.criteria.age.days' -%>
  • -- 2.39.5