summaryrefslogtreecommitdiff
path: root/app/views/shared
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-04-19 17:54:20 -0300
committerFelipe Artur <felipefac@gmail.com>2016-04-19 17:54:20 -0300
commit97b5e49d30d8ed8090a6de45be335da9458f5d34 (patch)
tree729cdc5c549b0a669b9db023d0b979a96bb701ff /app/views/shared
parent6a19467c415487ae786df12b04f62647132986ac (diff)
downloadgitlab-ce-97b5e49d30d8ed8090a6de45be335da9458f5d34.tar.gz
Fix javascript errors with invalid json because of commas
Diffstat (limited to 'app/views/shared')
-rw-r--r--app/views/shared/issuable/_sidebar.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/issuable/_sidebar.html.haml b/app/views/shared/issuable/_sidebar.html.haml
index 55d7a38cce2..03a615d191c 100644
--- a/app/views/shared/issuable/_sidebar.html.haml
+++ b/app/views/shared/issuable/_sidebar.html.haml
@@ -151,6 +151,6 @@
:javascript
new MilestoneSelect('{"namespace":"#{@project.namespace.path}","path":"#{@project.path}"}');
new LabelsSelect();
- new IssuableContext('#{current_user.to_json(only: [:username, :id, :name])}');
+ new IssuableContext('#{escape_javascript(current_user.to_json(only: [:username, :id, :name]))}');
new Subscription('.subscription')
new Sidebar();