summaryrefslogtreecommitdiff
path: root/app/views/projects/notes
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-03-21 13:28:20 -0600
committerDouwe Maan <douwe@selenight.nl>2017-03-21 13:28:20 -0600
commita3111e1406e926b21aa3902c3fcc30dc5b5aebab (patch)
tree18725fb886c907bf17c4306ec320ee66ec41e195 /app/views/projects/notes
parenta12c6db88742c281b56be4f6a5e8e488373507be (diff)
downloadgitlab-ce-a3111e1406e926b21aa3902c3fcc30dc5b5aebab.tar.gz
Escape values passed from Rails to Vue to make sure the template can be compiled
Diffstat (limited to 'app/views/projects/notes')
-rw-r--r--app/views/projects/notes/_note.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml
index 5552086bc50..6c0e6d48d6c 100644
--- a/app/views/projects/notes/_note.html.haml
+++ b/app/views/projects/notes/_note.html.haml
@@ -37,7 +37,7 @@
":can-resolve" => can_resolve,
":author-name" => "'#{j(note.author.name)}'",
"author-avatar" => note.author.avatar_url,
- ":note-truncated" => "'#{truncate(note.note, length: 17)}'",
+ ":note-truncated" => "'#{j(truncate(note.note, length: 17))}'",
":resolved-by" => "'#{j(note.resolved_by.try(:name))}'",
"v-show" => "#{can_resolve || note.resolved?}",
"inline-template" => true,