正在显示
1 个修改的文件
包含
3 行增加
和
1 行删除
| @@ -229,7 +229,9 @@ class Body { | @@ -229,7 +229,9 @@ class Body { | ||
| 229 | // 附件情况 | 229 | // 附件情况 |
| 230 | if(!empty($boundary[1])){ | 230 | if(!empty($boundary[1])){ |
| 231 | preg_match_all('/.*'.$boundary[1].'.*/i',$body,$boundary_tag); | 231 | preg_match_all('/.*'.$boundary[1].'.*/i',$body,$boundary_tag); |
| 232 | - $body = str_replace($boundary_tag[0],'{--tag--}',$body); | 232 | + if(!empty($boundary_tag[0])){ |
| 233 | + $body = str_replace($boundary_tag[0],'{--tag--}',$body); | ||
| 234 | + } | ||
| 233 | } | 235 | } |
| 234 | // 查找tag块 | 236 | // 查找tag块 |
| 235 | preg_match_all("/((".str_replace( | 237 | preg_match_all("/((".str_replace( |
-
请 注册 或 登录 后发表评论