正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
| @@ -150,7 +150,7 @@ class Body { | @@ -150,7 +150,7 @@ class Body { | ||
| 150 | $body = mb_substr($body,strpos($body,$tag),99999999999); | 150 | $body = mb_substr($body,strpos($body,$tag),99999999999); |
| 151 | 151 | ||
| 152 | // 有附件的情况 | 152 | // 有附件的情况 |
| 153 | - preg_match('/boundary="([-_A-Za-z0-9=\.]{1,})"/i',$body,$boundary); | 153 | + preg_match('/boundary="(.*)"/Ui',$body,$boundary); |
| 154 | if($boundary[0]??''){ | 154 | if($boundary[0]??''){ |
| 155 | $body = str_replace($boundary[0],'',$body); | 155 | $body = str_replace($boundary[0],'',$body); |
| 156 | // $body = mb_substr($body,mb_strpos($body,$boundary[0])+strlen($boundary[0]),99999999999); | 156 | // $body = mb_substr($body,mb_strpos($body,$boundary[0])+strlen($boundary[0]),99999999999); |
| @@ -186,7 +186,8 @@ class Body { | @@ -186,7 +186,8 @@ class Body { | ||
| 186 | if(!$item) { continue; } | 186 | if(!$item) { continue; } |
| 187 | 187 | ||
| 188 | // 邮件体包含邮件体 | 188 | // 邮件体包含邮件体 |
| 189 | - if(preg_match("/boundary=\"([-_a-z0-9]{5,})\"/Ui",$item,$bm)){ | 189 | + if(preg_match("/boundary=\"(.*)\"/Ui",$item,$bm)){ |
| 190 | + | ||
| 190 | if (strpos($item,$bm[1].'--')!==false){ | 191 | if (strpos($item,$bm[1].'--')!==false){ |
| 191 | $data = (new self('--'.$bm[1]."\r\n".$item,$this->fileSavePath))->getItem(); | 192 | $data = (new self('--'.$bm[1]."\r\n".$item,$this->fileSavePath))->getItem(); |
| 192 | // $this->setItem($data); | 193 | // $this->setItem($data); |
-
请 注册 或 登录 后发表评论