Commit 65197b8a8a74f662313ac0885aced49b9d243e9d

Authored by Dmitriy Zaporozhets
1 parent 06755524

Sanitize issues title in autocomplete for comment

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) ->