作者 邓超

x

... ... @@ -315,7 +315,7 @@ class Body {
$filename = mb_decode_mimeheader($filename[1]);
}
// 附件
if($data['type']=='text/plain' && stripos($item,'Content-Disposition: attachment;')!==false){
if(($data['type']??'')=='text/plain' && stripos($item,'Content-Disposition: attachment;')!==false){
$isfileattachment = 1;
$data['append_html'] = 1;
}
... ...