summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-10-24 17:04:22 +0000
committeralecpl <alec@alec.pl>2009-10-24 17:04:22 +0000
commit1d7e4d314dcdaa1aa5353f6d520ba448b5808f8f (patch)
tree2cb42d8c95a978efa933be00e63cfd8f11511420 /program/include
parent04dcf0d8e1caef029d386cfa9f51c01f58c93a70 (diff)
- allow '+' character in mimetype name (#1486239)
Diffstat (limited to 'program/include')
-rw-r--r--program/include/rcube_message.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/rcube_message.php b/program/include/rcube_message.php
index 7c2457e55..1a22427d0 100644
--- a/program/include/rcube_message.php
+++ b/program/include/rcube_message.php
@@ -402,7 +402,7 @@ class rcube_message
$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;