diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-03-21 13:28:20 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-03-21 13:28:20 -0600 |
commit | a3111e1406e926b21aa3902c3fcc30dc5b5aebab (patch) | |
tree | 18725fb886c907bf17c4306ec320ee66ec41e195 /app/views | |
parent | a12c6db88742c281b56be4f6a5e8e488373507be (diff) | |
download | gitlab-ce-a3111e1406e926b21aa3902c3fcc30dc5b5aebab.tar.gz |
Escape values passed from Rails to Vue to make sure the template can be compiled
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/notes/_note.html.haml | 2 |
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, |