fix for getting the filenames
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 19 Aug 2002 10:00:17 +0000 (10:00 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 19 Aug 2002 10:00:17 +0000 (10:00 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3359 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index acda70a..1fa418d 100644 (file)
@@ -617,9 +617,9 @@ function getAttachments($message, $session, $passed_id, $entities, $imapConnecti
                   $filename = "untitled-".$message->entity_id.'.eml';
                }
            } else {
-               $filename = decodeHeader($message->header->getParameter('filename'));
+               $filename = decodeHeader($message->header->disposition->getProperty('filename'));
                if ($filename == '') {
-                 $name = decodeHeader($message->header->getParameter('name'));
+                 $name = decodeHeader($message->header->disposition->getProperty('name'));
                  if ($name == '') {
                      $filename = "untitled-".$message->entity_id;
                  } else {