From cf22004db74d80f4bbcc3801e1802d4a30cf4c77 Mon Sep 17 00:00:00 2001 From: stekkel Date: Thu, 30 Jan 2003 18:05:49 +0000 Subject: [PATCH] get the filename from the properties if no disposition information is 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/download.php b/src/download.php index 1be2b9eb..8e9ed13c 100644 --- a/src/download.php +++ b/src/download.php @@ -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'; -- 2.25.1