diff options
author | Aleksander Machniak <alec@alec.pl> | 2014-10-23 11:09:35 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2014-10-23 11:09:35 +0200 |
commit | 9d9623462ab144f9013b1f7ac85667e186f6c0d8 (patch) | |
tree | f90ebed088318e9772b179077ca7f6d7b3375764 | |
parent | 2268aa676d4f21f0f26b4c802c6fb9c2c631d206 (diff) |
Fix handling of base64-encoded attachments with extra spaces (#1490111)
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | program/lib/Roundcube/rcube_imap_generic.php | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -57,6 +57,7 @@ CHANGELOG Roundcube Webmail - Fix font style display issue in HTML messages with styled <span> elements (#1490101) - Fix download of attachments that are part of TNEF message (#1490091) - Fix handling of uuencoded messages if messages_cache is enabled (#1490108) +- Fix handling of base64-encoded attachments with extra spaces (#1490111) RELEASE 1.0.3 ------------- diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php index 734a9311e..7c1166f5c 100644 --- a/program/lib/Roundcube/rcube_imap_generic.php +++ b/program/lib/Roundcube/rcube_imap_generic.php @@ -2675,7 +2675,7 @@ class rcube_imap_generic // BASE64 if ($mode == 1) { - $line = rtrim($line, "\t\r\n\0\x0B"); + $line = preg_replace('|[^a-zA-Z0-9+=/]|', '', $line); // create chunks with proper length for base64 decoding $line = $prev.$line; $length = strlen($line); |