From 2c252f5a03a5cdaea32c9aa7abf8daf5ab0a342d Mon Sep 17 00:00:00 2001 From: gustavf Date: Tue, 11 Jul 2000 08:15:29 +0000 Subject: [PATCH] Fixed bug that made it impossible to receive attachments. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@610 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mime.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions/mime.php b/functions/mime.php index 701cea85..eeb461b3 100644 --- a/functions/mime.php +++ b/functions/mime.php @@ -429,15 +429,15 @@ // Get the right entity and redefine message to be this entity $ent_num = findDisplayEntity ($message); - $message = getEntity($message, $ent_num); + $body_message = getEntity($message, $ent_num); $body = mime_fetch_body ($imap_stream, $id, $ent_num); - $body = decodeBody($body, $message->header->encoding); + $body = decodeBody($body, $body_message->header->encoding); // If there are other types that shouldn't be formatted, add // them here if ($message->header->type1 != "html") { - $body = translateText($body, $wrap_at, $message->header->charset); + $body = translateText($body, $wrap_at, $body_message->header->charset); } $body .= "
". _("Download this as a file") ."

"; -- 2.25.1