Commit 65197b8a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Sanitize issues title in autocomplete for comment

parent 06755524
...@@ -44,7 +44,7 @@ GitLab.GfmAutoComplete = ...@@ -44,7 +44,7 @@ GitLab.GfmAutoComplete =
tpl: @Issues.template tpl: @Issues.template
callbacks: callbacks:
before_save: (issues) -> before_save: (issues) ->
$.map issues, (i) -> id: i.id, title: i.title, search: "#{i.id} #{i.title}" $.map issues, (i) -> id: i.id, title: sanitize(i.title), search: "#{i.id} #{i.title}"
input.one "focus", => input.one "focus", =>
$.getJSON(@dataSource).done (data) -> $.getJSON(@dataSource).done (data) ->
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment