Browse Source

Remove NUL characters in case of text and message parts.

stekkel 20 years ago
parent
commit
f1f8c4b41e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      class/deliver/Deliver.class.php

+ 2 - 0
class/deliver/Deliver.class.php

@@ -133,6 +133,8 @@ class Deliver {
         case 'message':
         case 'message':
             if ($message->body_part) {
             if ($message->body_part) {
                 $body_part = $message->body_part;
                 $body_part = $message->body_part;
+                // remove NUL characters
+                $body_part = str_replace("\0",'',$body_part);
                 $length += $this->clean_crlf($body_part);
                 $length += $this->clean_crlf($body_part);
                 if ($stream) {
                 if ($stream) {
                     $this->preWriteToStream($body_part);
                     $this->preWriteToStream($body_part);