From 6622de0eb61143968d91f8de56afd52d1648493e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 11 Mar 2021 14:56:26 +0100 Subject: [PATCH] Fix broken handling ical file with mimetype of application/octet-stream --- mail/inc/class.mail_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index 49900a7367..c409f362b5 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -2437,7 +2437,7 @@ $filter['before']= date("d-M-Y", $cutoffdate2); $attachmentHTML[$key]['filename'] = Api\Translation::convert_jsonsafe($attachmentHTML[$key]['filename'],'utf-8'); //error_log(array2string($value)); //error_log(strtoupper($value['mimeType']) .'<->'. Api\MimeMagic::filename2mime($attachmentHTML[$key]['filename'])); - if (strtoupper($value['mimeType']=='APPLICATION/OCTET-STREAM')) $value['mimeType'] = Api\MimeMagic::filename2mime($attachmentHTML[$key]['filename']); + if (strtoupper($value['mimeType']) == 'APPLICATION/OCTET-STREAM') $value['mimeType'] = Api\MimeMagic::filename2mime($attachmentHTML[$key]['filename']); $attachmentHTML[$key]['type']=$value['mimeType']; $attachmentHTML[$key]['mimetype'] = Api\MimeMagic::mime2label($value['mimeType']); $hA = self::splitRowID($rowID);