From: Carl Hetherington Date: Mon, 11 Apr 2016 14:41:29 +0000 (+0100) Subject: Filter null characters out of email. X-Git-Tag: v2.7.12~10 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=2efc9ef53d6b64f80d626dd80ea91970eec367da Filter null characters out of email. --- 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