aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/views/component_issues/index.html.erb8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/component_issues/index.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/component_issues/index.html.erb
index f5d868da748..c1b98d59ad0 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/component_issues/index.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/component_issues/index.html.erb
@@ -6,9 +6,9 @@
<script>
var config = {
- resource: '<%= @resource.uuid -%>',
- resourceQualifier: '<%= @resource.qualifier -%>',
- resourceName: '<%= @resource.name -%>',
- periodDate: <% if @period %>'<%= @snapshot.period_datetime(@period) -%>'<% else %>null<% end %>
+ resource: '<%= escape_javascript @resource.uuid -%>',
+ resourceQualifier: '<%= escape_javascript @resource.qualifier -%>',
+ resourceName: '<%= escape_javascript @resource.name -%>',
+ periodDate: <% if @period %>'<%= escape_javascript @snapshot.period_datetime(@period) -%>'<% else %>null<% end %>
};
</script>