aboutsummaryrefslogtreecommitdiffstats
path: root/mail/roundcube/files/patch-program_lib_Roundcube_rcube_message.php
blob: 889547b8d3a9b524b19847673a8e434213d332d5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- program/lib/Roundcube/rcube_message.php.orig	2022-06-26 20:26:58 UTC
+++ program/lib/Roundcube/rcube_message.php
@@ -914,8 +914,7 @@ class rcube_message
                 else if (
                     preg_match('/^(inline|attach)/', $mail_part->disposition)
                     || !empty($mail_part->headers['content-id'])
-                    || ($mail_part->filename &&
-                        (empty($mail_part->disposition) || preg_match('/^[a-z0-9!#$&.+^_-]+$/i', $mail_part->disposition)))
+                    || $mail_part->filename
                 ) {
                     // skip apple resource forks
                     if ($message_ctype_secondary == 'appledouble' && $secondary_type == 'applefile') {