diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-12 08:49:47 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-09-12 08:49:47 +0000 |
| commit | ba7646e50203b7cc91ac57cc5dad96aded8dd745 (patch) | |
| tree | c5b64426704725f3f8619e936e6aca37c4cf686c /roundcubemail/program/include/rcube_imap.php | |
| parent | 176e841e2aa3bee498875345691e5752fd97f50c (diff) | |
- Fix handling of binary attachments encoded with quoted-printable (#1488065)
git-svn-id: https://svn.roundcube.net/trunk@5204 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_imap.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_imap.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/roundcubemail/program/include/rcube_imap.php b/roundcubemail/program/include/rcube_imap.php index dfbee76c0..ce8bb0f6d 100644 --- a/roundcubemail/program/include/rcube_imap.php +++ b/roundcubemail/program/include/rcube_imap.php @@ -2386,6 +2386,9 @@ class rcube_imap return true; } + // Remove NULL characters (#1486189) + $body = str_replace("\x00", '', $body); + // convert charset (if text or message part) if ($body && !$skip_charset_conv && preg_match('/^(text|message)$/', $o_part->ctype_primary) |
