Commit | Line | Data |
---|---|---|
8449e89f SL |
1 | --- src/parser/interfaces/part_parser.php 2022-07-26 20:42:22.585924146 +0000 |
2 | +++ src/parser/interfaces/part_parser.php 2022-07-26 20:41:55.801553916 +0000 | |
3 | @@ -171,8 +171,8 @@ | |
4 | // dev/core#940 Ensure that emails are not processed as .unknown attachments by checking | |
5 | // for Filename or name in the content-disposition and content-type headers. | |
6 | if ( (ezcMailPartParser::$parseTextAttachmentsAsFiles === true) && | |
7 | - (preg_match('/\s*filename="?([^;"]*);?/i', $headers['Content-Disposition']) || | |
8 | - preg_match( '/\s*name="?([^;"]*);?/i' , $headers['Content-Type']) ) ) | |
9 | + (preg_match('/\s*filename="?([^;"]*);?/i', $headers['Content-Disposition'] ?? '') || | |
10 | + preg_match( '/\s*name="?([^;"]*);?/i' , $headers['Content-Type'] ?? '') ) ) | |
11 | { | |
12 | $bodyParser = new ezcMailFileParser( $mainType, $subType, $headers ); | |
13 | } |