正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -271,8 +271,10 @@ class Body { | @@ -271,8 +271,10 @@ class Body { | ||
| 271 | { | 271 | { | 
| 272 | $data->Charset = $this->header->get('charset') ? : 'utf-8'; | 272 | $data->Charset = $this->header->get('charset') ? : 'utf-8'; | 
| 273 | } | 273 | } | 
| 274 | - // 处理content id中意外的字符串 | ||
| 275 | - $data->set('Content-ID',trim(str_replace(['"','<','>'],'',$data->get('Content-ID')))); | 274 | + if($data->get('Content-ID')){ | 
| 275 | + // 处理content id中意外的字符串 | ||
| 276 | + $data->set('Content-ID',trim(str_replace(['"','<','>'],'',$data->get('Content-ID')))); | ||
| 277 | + } | ||
| 276 | 278 | ||
| 277 | return $data; | 279 | return $data; | 
| 278 | } | 280 | } | 
- 
请 注册 或 登录 后发表评论