diff options
author | Aleksander Machniak <alec@alec.pl> | 2013-11-28 15:20:58 +0100 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2013-11-28 15:20:58 +0100 |
commit | 5f31429de5732617ad18fd2b67d6e2424a7185a7 (patch) | |
tree | 450315913be69c701c61ee7717e0c9b99e095c10 /program/lib/Roundcube | |
parent | f25a96bd4020806ffe6674b0f82f5df5f54add2a (diff) |
Fix preparation of message object before saving into the cache.
The bug cased e.g. displaying HTML content as plain text for messages
with Content-Type: text/html.
Diffstat (limited to 'program/lib/Roundcube')
-rw-r--r-- | program/lib/Roundcube/rcube_imap_cache.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/program/lib/Roundcube/rcube_imap_cache.php b/program/lib/Roundcube/rcube_imap_cache.php index a8166545e..0c3edeaad 100644 --- a/program/lib/Roundcube/rcube_imap_cache.php +++ b/program/lib/Roundcube/rcube_imap_cache.php @@ -1250,10 +1250,8 @@ class rcube_imap_cache unset($msg->replaces); - if (is_array($msg->structure->parts)) { - foreach ($msg->structure->parts as $part) { - $this->message_object_prepare($part, $size); - } + if (is_object($msg->structure)) { + $this->message_object_prepare($msg->structure, $size); } if (is_array($msg->parts)) { |