From 8e73da2b634a087fd9a33acb661368aef3d5dca7 Mon Sep 17 00:00:00 2001 From: alex-brainstorm Date: Wed, 10 Dec 2003 23:47:26 +0000 Subject: [PATCH] Separate empty subject case from unknown mime type git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6263 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/download.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/download.php b/src/download.php index a7286c95..242326af 100644 --- a/src/download.php +++ b/src/download.php @@ -105,10 +105,11 @@ if (strlen($filename) < 1) { $suffix = 'ps'; else if ($type1 == 'rfc822' && $type0 == 'message') $suffix = 'msg'; - else { - $filename = 'untitled' . strip_tags($ent_id); + else $suffix = $type1; - } + + if ($filename == '') + $filename = 'untitled' . strip_tags($ent_id); $filename = $filename . '.' . $suffix; } -- 2.25.1