From 2efc9ef53d6b64f80d626dd80ea91970eec367da Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 11 Apr 2016 15:41:29 +0100 Subject: Filter null characters out of email. --- src/lib/emailer.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/lib') diff --git a/src/lib/emailer.cc b/src/lib/emailer.cc index df254df24..dfc654396 100644 --- a/src/lib/emailer.cc +++ b/src/lib/emailer.cc @@ -44,6 +44,7 @@ Emailer::Emailer (string from, list to, string subject, string body) , _offset (0) { boost::algorithm::replace_all (_body, "\n", "\r\n"); + boost::algorithm::replace_all (_body, "\0", " "); } void -- cgit v1.2.3