From d7981cd8e22513dda3604d26bea6a6a544402cb1 Mon Sep 17 00:00:00 2001 From: fidian Date: Tue, 10 Apr 2001 14:35:33 +0000 Subject: [PATCH] * Fixed typo when forwarding a message with attachments -- the attachment 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/compose.php b/src/compose.php index df2931d1..2f4e7723 100644 --- a/src/compose.php +++ b/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 -- 2.25.1