summaryrefslogtreecommitdiff
path: root/web-ui/app/js/views
diff options
context:
space:
mode:
authorNeissi Torres Lima <neissi.lima@gmail.com>2014-09-05 15:44:47 -0300
committerNeissi Torres Lima <neissi.lima@gmail.com>2014-09-05 15:44:47 -0300
commitd2cf8b51904420917a5f86986ce7c02e89935998 (patch)
tree49e93ccf124a0b8080479661e9608646eae99b92 /web-ui/app/js/views
parente8afeee6c893104048149b9c2f7e79da1fea0cf4 (diff)
Neissi / Duda - Escaping recipients on mail view
Diffstat (limited to 'web-ui/app/js/views')
-rw-r--r--web-ui/app/js/views/recipientListFormatter.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/web-ui/app/js/views/recipientListFormatter.js b/web-ui/app/js/views/recipientListFormatter.js
index 20afc6ed..68e6dbe1 100644
--- a/web-ui/app/js/views/recipientListFormatter.js
+++ b/web-ui/app/js/views/recipientListFormatter.js
@@ -20,7 +20,9 @@ define(function() {
'use strict';
Handlebars.registerHelper('formatRecipients', function (header) {
function wrapWith(begin, end) {
- return function (x) { return begin + x + end; };
+ return function (x) {
+ return begin + Handlebars.Utils.escapeExpression(x) + end;
+ };
}
var to = _.map(header.to, wrapWith('<span class="to">', '</span>'));