Thomas Bruederli
2013-11-14 596301c10bde5e98b6cfdde51be843ffbf087e8d
Reset $part_orig_mimetype variable in for-loop. This avoids attachments along with message/rfc822 parts being listed twice
1 files modified
5 ■■■■■ changed files
program/lib/Roundcube/rcube_message.php 5 ●●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_message.php
@@ -529,8 +529,9 @@
                    $part_mimetype = $mail_part->real_mimetype;
                    list($primary_type, $secondary_type) = explode('/', $part_mimetype);
                }
                else
                    $part_mimetype = $mail_part->mimetype;
                else {
                    $part_mimetype = $part_orig_mimetype = $mail_part->mimetype;
                  }
                // multipart/alternative
                if ($primary_type == 'multipart') {