浏览代码

Linefeed not allowed in middle of Content-Type header

pdontthink 20 年之前
父节点
当前提交
bb12b30d86
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      class/deliver/Deliver.class.php

+ 1 - 1
class/deliver/Deliver.class.php

@@ -292,7 +292,7 @@ class Deliver {
         $contenttype = 'Content-Type: '. $mime_header->type0 .'/'.
                         $mime_header->type1;
         if (count($message->entities)) {
-            $contenttype .= ";\r\n " . 'boundary="'.$boundary.'"';
+            $contenttype .= ';' . 'boundary="'.$boundary.'"';
         }
         if (isset($mime_header->parameters['name'])) {
             $contenttype .= '; name="'.