summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-20 11:12:28 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-10-20 11:12:28 +0000
commit1740630d85b32a782a820c66ed2ec64880aa5147 (patch)
tree3ad8e1681a0db438413461cd122152619f7ddd0c
parent2264bd8ab0f511620244e535bea8b63e9f045bed (diff)
- Allow underline in content-type name, per comments in #1487051
git-svn-id: https://svn.roundcube.net/trunk@4112 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/include/rcube_message.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/include/rcube_message.php b/roundcubemail/program/include/rcube_message.php
index fd42e4ad4..2b793c441 100644
--- a/roundcubemail/program/include/rcube_message.php
+++ b/roundcubemail/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;