aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb
index 310216edab0..9ffb899f05e 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/configure.html.erb
@@ -64,7 +64,7 @@
function init_dashboard() {
portal = new Portal(options);
<% if params[:highlight] %>
- portal.highlightWidget(<%= params[:highlight] -%>);
+ portal.highlightWidget(<%= escape_javascript(params[:highlight]) -%>);
<% end %>
}
$j(document).ready(function(){init_dashboard();});