|
Lines 1-13
Link Here
|
| 1 |
--- program/lib/Roundcube/rcube_message.php.orig 2017-06-26 20:56:48.000000000 +0200 |
1 |
--- program/lib/Roundcube/rcube_message.php.orig 2021-10-17 20:38:04 UTC |
| 2 |
+++ program/lib/Roundcube/rcube_message.php 2017-06-30 10:20:36.889381000 +0200 |
2 |
+++ program/lib/Roundcube/rcube_message.php |
| 3 |
@@ -830,9 +830,7 @@ class rcube_message |
3 |
@@ -910,8 +910,7 @@ class rcube_message |
| 4 |
} |
4 |
else if ( |
| 5 |
// part is a file/attachment |
5 |
preg_match('/^(inline|attach)/', $mail_part->disposition) |
| 6 |
else if (preg_match('/^(inline|attach)/', $mail_part->disposition) || |
6 |
|| $mail_part->headers['content-id'] |
| 7 |
- $mail_part->headers['content-id'] || |
7 |
- || ($mail_part->filename && |
| 8 |
- ($mail_part->filename && |
|
|
| 9 |
- (empty($mail_part->disposition) || preg_match('/^[a-z0-9!#$&.+^_-]+$/i', $mail_part->disposition))) |
8 |
- (empty($mail_part->disposition) || preg_match('/^[a-z0-9!#$&.+^_-]+$/i', $mail_part->disposition))) |
| 10 |
+ $mail_part->headers['content-id'] || $mail_part->filename |
9 |
+ || $mail_part->filename |
| 11 |
) { |
10 |
) { |
| 12 |
// skip apple resource forks |
11 |
// skip apple resource forks |
| 13 |
if ($message_ctype_secondary == 'appledouble' && $secondary_type == 'applefile') |
12 |
if ($message_ctype_secondary == 'appledouble' && $secondary_type == 'applefile') { |