diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-07-08 08:47:13 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-07-08 08:47:13 +0200 |
commit | 8acf6204b1b56388cab8fc3db67b686fb950ba0e (patch) | |
tree | d06e6857a9e1b0cdae0899198e89ed35a11f139b | |
parent | 8483de8bdf4c28e5acb5c8b51916a382546b4073 (diff) |
Fix "could not load message" error on valid empty message body (#1489228)
-rw-r--r-- | CHANGELOG | 1 | ||||
-rw-r--r-- | program/lib/Roundcube/rcube_imap_generic.php | 6 |
2 files changed, 6 insertions, 1 deletions
@@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Fix "could not load message" error on valid empty message body (#1489228) - Check filetype detection in installer and update script (#1489193) - Fix handling of message/rfc822 attachments on message forward and edit (#1489214) - Fix folder names truncation in Classic skin (#1489220) diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php index 9b11624a7..70ffd0d10 100644 --- a/program/lib/Roundcube/rcube_imap_generic.php +++ b/program/lib/Roundcube/rcube_imap_generic.php @@ -2543,7 +2543,11 @@ class rcube_imap_generic $prev = ''; $found = true; - while ($bytes > 0) { + // empty body + if (!$bytes) { + $result = ''; + } + else while ($bytes > 0) { $line = $this->readLine(8192); if ($line === NULL) { |