alecpl
2009-10-24 1d7e4d314dcdaa1aa5353f6d520ba448b5808f8f
- allow '+' character in mimetype name (#1486239)


1 files modified
2 ■■■ changed files
program/include/rcube_message.php 2 ●●● patch | view | raw | blame | history
program/include/rcube_message.php
@@ -402,7 +402,7 @@
            $this->inline_parts[] = $mail_part;
          }
          // is a regular attachment
          else if (preg_match('!^[a-z]+/[a-z0-9-.]+$!i', $mail_part->mimetype)) {
          else if (preg_match('!^[a-z]+/[a-z0-9-.+]+$!i', $mail_part->mimetype)) {
            if (!$mail_part->filename)
              $mail_part->filename = 'Part '.$mail_part->mime_id;
            $this->attachments[] = $mail_part;