summaryrefslogtreecommitdiff
path: root/mail/roundcube/files/patch-program_lib_Roundcube_rcube_message.php
blob: 5c657f567fd8a6cee8f7f879b4a7b0586b615d9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- program/lib/Roundcube/rcube_message.php.orig	2016-05-22 11:06:47 UTC
+++ program/lib/Roundcube/rcube_message.php
@@ -766,9 +766,7 @@ class rcube_message
                 }
                 // part is a file/attachment
                 else if (preg_match('/^(inline|attach)/', $mail_part->disposition) ||
-                    $mail_part->headers['content-id'] ||
-                    ($mail_part->filename &&
-                        (empty($mail_part->disposition) || preg_match('/^[a-z0-9!#$&.+^_-]+$/i', $mail_part->disposition)))
+                    $mail_part->headers['content-id'] || $mail_part->filename
                 ) {
                     // skip apple resource forks
                     if ($message_ctype_secondary == 'appledouble' && $secondary_type == 'applefile')