Filter null characters out of email.
authorCarl Hetherington <cth@carlh.net>
Mon, 11 Apr 2016 14:41:29 +0000 (15:41 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 11 Apr 2016 14:41:29 +0000 (15:41 +0100)
src/lib/emailer.cc

index df254df24da3f86e8e450e3f68452e2a2681edf6..dfc654396ad84500355dab194177da0d4bfe27ce 100644 (file)
@@ -44,6 +44,7 @@ Emailer::Emailer (string from, list<string> to, string subject, string body)
        , _offset (0)
 {
        boost::algorithm::replace_all (_body, "\n", "\r\n");
+       boost::algorithm::replace_all (_body, "\0", " ");
 }
 
 void