From dd6b3b7ee2d7e7a404f67e0fed427e142740e32c Mon Sep 17 00:00:00 2001 From: Greg Temchenko Date: Fri, 8 Mar 2013 17:05:54 -0800 Subject: [PATCH] escaping json for timeline widget --- .../resources/org/sonar/plugins/core/widgets/timeline.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(',') + "]}," -- 2.39.5