From a5bae451f2b7eb6531dbfe14901b85170ff36f22 Mon Sep 17 00:00:00 2001 From: Andrew Rodrigues Date: Tue, 30 Jan 2018 19:53:38 -0500 Subject: [PATCH] strip html tags from email subject --- src/notifications.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notifications.js b/src/notifications.js index 4bf9782e61..2c43276907 100644 --- a/src/notifications.js +++ b/src/notifications.js @@ -220,7 +220,7 @@ function pushToUids(uids, notification, callback) { async.eachLimit(uids, 3, function (uid, next) { emailer.send('notification', uid, { path: notification.path, - subject: notification.subject || '[[notifications:new_notification_from, ' + meta.config.title + ']]', + subject: utils.stripHTMLTags(notification.subject || '[[notifications:new_notification_from, ' + meta.config.title + ']]'), intro: utils.stripHTMLTags(notification.bodyShort), body: utils.stripHTMLTags(notification.bodyLong || ''), showUnsubscribe: true,