summaryrefslogtreecommitdiff
path: root/web-ui/app/js/mixins
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-10-01 15:34:17 -0300
committerDuda Dornelles <ddornell@thoughtworks.com>2014-10-01 15:34:17 -0300
commitd58d64c764a1a83411cff6a28a150cc8138a0228 (patch)
tree0633f9c842bf976107ffccd17b3ccc828dc7c83e /web-ui/app/js/mixins
parenteacd49cf7240b6a4660767950e9974ce064ce18c (diff)
#80 - escaping tags in the autocomplete box
Diffstat (limited to 'web-ui/app/js/mixins')
-rw-r--r--web-ui/app/js/mixins/with_mail_tagging.js2
1 files changed, 1 insertions, 1 deletions
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)}; }); }
}
});