From 1740630d85b32a782a820c66ed2ec64880aa5147 Mon Sep 17 00:00:00 2001 From: alec Date: Wed, 20 Oct 2010 11:12:28 +0000 Subject: - Allow underline in content-type name, per comments in #1487051 git-svn-id: https://svn.roundcube.net/trunk@4112 208e9e7b-5314-0410-a742-e7e81cd9613c --- roundcubemail/program/include/rcube_message.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roundcubemail/program/include/rcube_message.php') 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; -- cgit v1.2.3