diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-10-12 12:08:27 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-10-12 12:08:27 +0200 |
commit | 5f409583008dfbfa4b5e160f7ec9b1cc7a4766d2 (patch) | |
tree | 0289aac20a9771b7c531823d5823f34beb65e5ad /program | |
parent | 974f9db47963a65c6b2b652709a4c0e17ada76c5 (diff) |
Fix displaying of multipart/alternative messages with empty parts (#1488750)
Diffstat (limited to 'program')
-rw-r--r-- | program/include/rcube_message.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php index fe2fcf354..7bf95d1c5 100644 --- a/program/include/rcube_message.php +++ b/program/include/rcube_message.php @@ -371,6 +371,10 @@ class rcube_message foreach ($structure->parts as $p => $sub_part) { $sub_mimetype = $sub_part->mimetype; + // skip empty parts + if (!$sub_part->size) + continue; + // check if sub part is if ($sub_mimetype == 'text/plain') $plain_part = $p; |