From d58d64c764a1a83411cff6a28a150cc8138a0228 Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Wed, 1 Oct 2014 15:34:17 -0300 Subject: #80 - escaping tags in the autocomplete box --- web-ui/app/js/mixins/with_mail_tagging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web-ui/app/js') diff --git a/web-ui/app/js/mixins/with_mail_tagging.js b/web-ui/app/js/mixins/with_mail_tagging.js index 0b1fe21e..6ea047ed 100644 --- a/web-ui/app/js/mixins/with_mail_tagging.js +++ b/web-ui/app/js/mixins/with_mail_tagging.js @@ -33,7 +33,7 @@ define( queryTokenizer: function(q) { return [q.trim()]; }, remote: { url: '/tags?q=%QUERY', - filter: function(pr) { return _.map(pr, function(pp) { return {value: pp.name}; }); } + filter: function(pr) { return _.map(pr, function(pp) { return {value: Handlebars.Utils.escapeExpression(pp.name)}; }); } } }); -- cgit v1.2.3