get the filename from the properties if no disposition information is
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 30 Jan 2003 18:05:49 +0000 (18:05 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 30 Jan 2003 18:05:49 +0000 (18:05 +0000)
available in the bodystructure.

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

src/download.php

index 1be2b9ebf91a91538c9f97b90802554b136a4ae3..8e9ed13c9a76b36e5559689753ab4350f40c9112 100644 (file)
@@ -92,7 +92,10 @@ if (is_object($message->header->disposition)) {
     if (!$filename) {
         $filename = decodeHeader($header->getParameter('name'));
     }    
+} else {
+    $filename = decodeHeader($header->getParameter('name'));
 }
+
 if (strlen($filename) < 1) {
     if ($type1 == 'plain' && $type0 == 'text') {
         $suffix = 'txt';