作者 邓超

x

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