fixed problem with forwarding messages
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 22 Aug 2002 08:45:08 +0000 (08:45 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 22 Aug 2002 08:45:08 +0000 (08:45 +0000)
Thnx Jasper Kalkman for spotting the problem.

git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3398 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index d064ddc..f09a751 100644 (file)
@@ -619,15 +619,7 @@ function getAttachments($message, $session, $passed_id, $entities, $imapConnecti
                   $filename = "untitled-".$message->entity_id.'.eml';
                }
            } else {
-               $filename = decodeHeader($message->header->disposition->getProperty('filename'));
-               if ($filename == '') {
-                 $name = decodeHeader($message->header->disposition->getProperty('name'));
-                 if ($name == '') {
-                     $filename = "untitled-".$message->entity_id;
-                 } else {
-                    $filename = $name;
-                 }
-               }
+              $filename = decodeHeader($message->getFilename());
             }
             $localfilename = GenerateRandomString(32, '', 7);
             $full_localfilename = "$hashed_attachment_dir/$localfilename";