aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-09-11 09:31:59 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-09-11 09:32:08 +0200
commit77547b4944e0e86dfe27cd98e1811e18d770da9c (patch)
treec0442f600a423560dfd0dd74f5a139740bbb539e /server/sonar-web/src
parentb4c6aa4cbfe7befb3d1238a8ee29d5b7353de158 (diff)
downloadsonarqube-77547b4944e0e86dfe27cd98e1811e18d770da9c.tar.gz
sonarqube-77547b4944e0e86dfe27cd98e1811e18d770da9c.zip
fix SONAR-6815 Impossible to configure dashboard when one of the widgets has double quotes in its description
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb b/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb
index 3bb4a42d099..249a17f2a08 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb
@@ -81,7 +81,7 @@
widget_title = message("widget.#{definition.id}.name", :default => definition.title).downcase
widget_description = message("widget.#{definition.id}.description", :default => definition.description).downcase
%>
- { id:"<%= widget_id -%>", c:"<%= widget_title.gsub(/\r\n?/, " ") -%> <%= widget_description.gsub(/\r\n?/, " ") -%>" } <%= "," unless index==number_of_widgets-1 -%>
+ { id:"<%= widget_id -%>", c:"<%= escape_javascript widget_title.gsub(/\r\n?/, " ") -%> <%= escape_javascript widget_description.gsub(/\r\n?/, " ") -%>" } <%= "," unless index==number_of_widgets-1 -%>
<% end %>
];