From: stekkel Date: Thu, 30 Jan 2003 18:05:49 +0000 (+0000) Subject: get the filename from the properties if no disposition information is X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=cf22004db74d80f4bbcc3801e1802d4a30cf4c77 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 --- 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';