From: Greg Temchenko Date: Sat, 9 Mar 2013 01:05:54 +0000 (-0800) Subject: escaping json for timeline widget X-Git-Tag: 3.6~840^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dd6b3b7ee2d7e7a404f67e0fed427e142740e32c;p=sonarqube.git escaping json for timeline widget --- diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/timeline.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/timeline.html.erb index 6bcd0d7c1fa..f66d265d3f2 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/timeline.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/timeline.html.erb @@ -134,7 +134,7 @@ js_events += "),l:[" e_details.each() do |e| js_events += "{n:\"" - js_events += e.name + js_events += json_escape(e.name) js_events += "\"}," end js_events = js_events.chomp(',') + "]},"