Fixed bug that made it impossible to receive attachments.
authorgustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 11 Jul 2000 08:15:29 +0000 (08:15 +0000)
committergustavf <gustavf@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 11 Jul 2000 08:15:29 +0000 (08:15 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@610 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mime.php

index 701cea85127cb969e976766524f107b4cc66bfc8..eeb461b34e830deb63d5715bee583e23bf5e1f91 100644 (file)
 
       // 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 .= "<SMALL><CENTER><A HREF=\"../src/download.php?absolute_dl=true&passed_id=$id&passed_ent_id=$ent_num&mailbox=$urlmailbox\">". _("Download this as a file") ."</A></CENTER><BR></SMALL>";