From 3b5b889f6112b20ed8cf46d607b5fb7adee4206c Mon Sep 17 00:00:00 2001 From: fidian Date: Fri, 15 Dec 2000 16:54:50 +0000 Subject: [PATCH] Forward of attachments is fixed, I think. :-) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@892 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/compose.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/compose.php b/src/compose.php index 4c226b81..565bd923 100644 --- a/src/compose.php +++ b/src/compose.php @@ -49,7 +49,7 @@ if ($forward_id) $id = $forward_id; - else if ($reply_id) + elseif ($reply_id) $id = $reply_id; @@ -175,10 +175,13 @@ // Write Attachment to file $fp = fopen ($attachment_dir.$localfilename, "w"); fputs ($fp, decodeBody(mime_fetch_body($imapConnection, $forward_id, $message->header->entity_id), $message->header->encoding)); - fgets($imapConnection, 256); - fgets($imapConnection, 256); - fclose ($fp); + +// Don't know why these lines were included +// fgets($imapConnection, 256); +// fgets($imapConnection, 256); + fclose ($fp); + $attachments[$localfilename] = $filename; } -- 2.25.1