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 44 tpl: @Issues.template
45 45 callbacks:
46 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 49 input.one "focus", =>
50 50 $.getJSON(@dataSource).done (data) ->
... ...