浏览代码

* Fixed typo when forwarding a message with attachments -- the attachment
type wouldn't be set properly. Only affects new attachment scheme with 1.1

Tyler Akins 24 年之前
父节点
当前提交
5f001a09c9
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/compose.php

+ 2 - 1
src/compose.php

@@ -46,6 +46,7 @@
        session_register('attachments');
    }
 
+
    // This function is used when not sending or adding attachments
    function newMail () {
       global $forward_id, $imapConnection, $msg, $ent_num, $body_ary, $body,
@@ -178,7 +179,7 @@
 
               $newAttachment['localfilename'] = $localfilename;
 	      $newAttachment['remotefilename'] = $filename;
-	      $newAttachment['type0'] = strtolower($message->header->type0 .
+	      $newAttachment['type'] = strtolower($message->header->type0 .
 	         '/' . $message->header->type1);
 
               // Write Attachment to file