summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-10-20 11:12:28 +0000
committeralecpl <alec@alec.pl>2010-10-20 11:12:28 +0000
commit8bac7e988f0ed56605246164f530a2e43aa3e07a (patch)
tree550de018e8ee7df6a780cef17d7fbbf723c687ca
parent435c315223d65aeb28b50b2707bea0bdea6d3980 (diff)
- Allow underline in content-type name, per comments in #1487051
-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 fd42e4ad4..2b793c441 100644
--- a/program/include/rcube_message.php
+++ b/program/include/rcube_message.php
@@ -469,7 +469,7 @@ class rcube_message
$this->parse_structure($mail_part, true);
}
// is a regular attachment
- else if (preg_match('!^[a-z0-9-.+]+/[a-z0-9-.+]+$!i', $part_mimetype)) {
+ else if (preg_match('!^[a-z0-9-.+_]+/[a-z0-9-.+_]+$!i', $part_mimetype)) {
if (!$mail_part->filename)
$mail_part->filename = 'Part '.$mail_part->mime_id;
$this->attachments[] = $mail_part;