diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-06-03 11:24:37 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-06-03 11:24:44 +0200 |
commit | f5b953bccffd20a4d65b61d13f5f86e5ccbd5072 (patch) | |
tree | d6332447f97accbc6436df690d6f4b9dbbce2a02 | |
parent | 30747839b09533fe5e8fdc799054fd98c73e65e7 (diff) | |
download | sonarqube-f5b953bccffd20a4d65b61d13f5f86e5ccbd5072.tar.gz sonarqube-f5b953bccffd20a4d65b61d13f5f86e5ccbd5072.zip |
SONAR-6549 Contextualized issues page fails to display on projects with quotes in the name
-rw-r--r-- | server/sonar-web/src/main/webapp/WEB-INF/app/views/component_issues/index.html.erb | 8 |
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> |