get the filename from the properties if no disposition information is
[squirrelmail.git] / 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';