From: stekkel Date: Fri, 18 Feb 2005 02:19:10 +0000 (+0000) Subject: Remove NUL characters in case of text and message parts. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=4cf85dddc158d994c354c12d0c85b1a98e35fa3e;p=squirrelmail.git Remove NUL characters in case of text and message parts. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8874 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/class/deliver/Deliver.class.php b/class/deliver/Deliver.class.php index 60ba7965..bbca9318 100644 --- a/class/deliver/Deliver.class.php +++ b/class/deliver/Deliver.class.php @@ -133,6 +133,8 @@ class Deliver { case 'message': if ($message->body_part) { $body_part = $message->body_part; + // remove NUL characters + $body_part = str_replace("\0",'',$body_part); $length += $this->clean_crlf($body_part); if ($stream) { $this->preWriteToStream($body_part);