fix for displaying the correct entity
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 16 Aug 2002 11:44:28 +0000 (11:44 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 16 Aug 2002 11:44:28 +0000 (11:44 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3323 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/view_text.php

index d8bf19f..9768caf 100644 (file)
@@ -15,7 +15,7 @@
 
    $message = &$messages[$mbx_response['UIDVALIDITY']]["$passed_id"];
    $message = &$message->getEntity($ent_id);
-
+   
    $header = $message->header;
    $charset = $header->getParameter('charset');
    $type0 = $header->type0;
@@ -25,7 +25,7 @@
    $msg_url = 'read_body.php?' . $QUERY_STRING;
    $msg_url = set_url_var($msg_url, 'ent_id', 0);
 
-   $body = mime_fetch_body($imapConnection, $passed_id, $passed_ent_id);
+   $body = mime_fetch_body($imapConnection, $passed_id, $ent_id);
    $body = decodeBody($body, $encoding);
 
     displayPageHeader($color, 'None');