From 65197b8a8a74f662313ac0885aced49b9d243e9d Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sun, 4 Aug 2013 17:14:15 +0300 Subject: [PATCH] Sanitize issues title in autocomplete for comment --- app/assets/javascripts/gfm_auto_complete.js.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/gfm_auto_complete.js.coffee b/app/assets/javascripts/gfm_auto_complete.js.coffee index c8c57b91e03..e22761e57a4 100644 --- a/app/assets/javascripts/gfm_auto_complete.js.coffee +++ b/app/assets/javascripts/gfm_auto_complete.js.coffee @@ -44,7 +44,7 @@ GitLab.GfmAutoComplete = tpl: @Issues.template callbacks: 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", => $.getJSON(@dataSource).done (data) ->