Commit 65197b8a8a74f662313ac0885aced49b9d243e9d
1 parent
06755524
Exists in
master
and in
4 other branches
Sanitize issues title in autocomplete for comment
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/assets/javascripts/gfm_auto_complete.js.coffee
@@ -44,7 +44,7 @@ GitLab.GfmAutoComplete = | @@ -44,7 +44,7 @@ GitLab.GfmAutoComplete = | ||
44 | tpl: @Issues.template | 44 | tpl: @Issues.template |
45 | callbacks: | 45 | callbacks: |
46 | before_save: (issues) -> | 46 | before_save: (issues) -> |
47 | - $.map issues, (i) -> id: i.id, title: i.title, search: "#{i.id} #{i.title}" | 47 | + $.map issues, (i) -> id: i.id, title: sanitize(i.title), search: "#{i.id} #{i.title}" |
48 | 48 | ||
49 | input.one "focus", => | 49 | input.one "focus", => |
50 | $.getJSON(@dataSource).done (data) -> | 50 | $.getJSON(@dataSource).done (data) -> |