strip html tags from email subject

This commit is contained in:
Andrew Rodrigues
2018-01-30 19:53:38 -05:00
committed by GitHub
parent c62e5f8130
commit a5bae451f2

View File

@@ -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,