正在显示
1 个修改的文件
包含
15 行增加
和
4 行删除
| @@ -404,10 +404,21 @@ class Body { | @@ -404,10 +404,21 @@ class Body { | ||
| 404 | 404 | ||
| 405 | $item['body'] = str_replace($result,'',$item['body']); | 405 | $item['body'] = str_replace($result,'',$item['body']); |
| 406 | 406 | ||
| 407 | - $item['body'] = $this->body_remove_tag($item['body'],"Content-"); | ||
| 408 | - $item['body'] = $this->body_remove_tag($item['body'],"Content-"); | ||
| 409 | - $item['body'] = $this->body_remove_tag($item['body'],"Content-"); | ||
| 410 | - $item['body'] = $this->body_remove_tag($item['body'],"Content-"); | 407 | + |
| 408 | + $filecontent = explode("\r\n",@trim($item['body'])); | ||
| 409 | + $ki = 0; | ||
| 410 | + foreach ($filecontent as $k=>$str){ | ||
| 411 | + if(!$str){ | ||
| 412 | + $ki = $k; | ||
| 413 | + } | ||
| 414 | + } | ||
| 415 | + $filecontent = array_slice($filecontent,$ki+1,count($filecontent)); | ||
| 416 | + $item['body'] = implode("",$filecontent); | ||
| 417 | +// $item['body'] = $this->body_remove_tag($item['body'],"Content-"); | ||
| 418 | +// $item['body'] = $this->body_remove_tag($item['body'],"Content-"); | ||
| 419 | +// $item['body'] = $this->body_remove_tag($item['body'],"Content-"); | ||
| 420 | +// $item['body'] = $this->body_remove_tag($item['body'],"Content-"); | ||
| 421 | +// $item['body'] = $this->body_remove_tag($item['body'],"X-"); | ||
| 411 | 422 | ||
| 412 | $content = base64_decode(trim($item['body'])); | 423 | $content = base64_decode(trim($item['body'])); |
| 413 | 424 |
-
请 注册 或 登录 后发表评论