Aleksander Machniak
2012-10-17 070b8e9f7144d3f517c68356eacdf3e96484be06
Fix the fix for empty text parts handling (#1488757)
1 files modified
5 ■■■■■ changed files
program/include/rcube_message.php 5 ●●●●● patch | view | raw | blame | history
program/include/rcube_message.php
@@ -364,9 +364,10 @@
            foreach ($structure->parts as $p => $sub_part) {
                $sub_mimetype = $sub_part->mimetype;
                // skip empty parts
                if (!$sub_part->size)
                // skip empty text parts
                if (!$sub_part->size && preg_match('#^text/(plain|html|enriched)$#', $sub_mimetype)) {
                    continue;
                }
                // check if sub part is
                if ($sub_mimetype == 'text/plain')