* Fixed typo when forwarding a message with attachments -- the attachment
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 10 Apr 2001 14:35:33 +0000 (14:35 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 10 Apr 2001 14:35:33 +0000 (14:35 +0000)
  type wouldn't be set properly.  Only affects new attachment scheme with 1.1

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1217 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index df2931d1e767ccad9e13d052ac9d8823d8a9a73e..2f4e7723f53ea278c2d03ff81edfc2a9c34b32c3 100644 (file)
@@ -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,
 
               $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