作者 邓超

x

@@ -229,8 +229,10 @@ class Body { @@ -229,8 +229,10 @@ 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 + if(!empty($boundary_tag[0])){
232 $body = str_replace($boundary_tag[0],'{--tag--}',$body); 233 $body = str_replace($boundary_tag[0],'{--tag--}',$body);
233 } 234 }
  235 + }
234 // 查找tag块 236 // 查找tag块
235 preg_match_all("/((".str_replace( 237 preg_match_all("/((".str_replace(
236 ['/','+','.','^','$','*','?','|'], 238 ['/','+','.','^','$','*','?','|'],