Skip to content

Commit

Permalink
Prevent HTML tags in livechat offline email subject
Browse files Browse the repository at this point in the history
  • Loading branch information
sampaiodiego committed May 19, 2016
1 parent f1e6a9b commit 3674735
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Meteor.methods({
to: RocketChat.settings.get('Livechat_offline_email'),
from: `${data.name} - ${data.email} <${fromEmail}>`,
replyTo: `${data.name} <${data.email}>`,
subject: `Livechat offline message from ${data.name}: ${message.substring(0, 20)}`,
subject: `Livechat offline message from ${data.name}: ${(data.message + '').substring(0, 20)}`,
html: header + html + footer
});
});
Expand Down

0 comments on commit 3674735

Please sign in to comment.