program/include/rcube_imap.php
@@ -2416,8 +2416,10 @@ // convert charset (if text or message part) if ($body && preg_match('/^(text|message)$/', $o_part->ctype_primary)) { // Remove NULL characters (#1486189) // Remove NULL characters if any (#1486189) if (strpos($body, "\x00") !== false) { $body = str_replace("\x00", '', $body); } if (!$skip_charset_conv) { if (!$o_part->charset || strtoupper($o_part->charset) == 'US-ASCII') {