From fd77c331f57c5f02d2eebc84d8fa5b4123759d59 Mon Sep 17 00:00:00 2001 From: alex-brainstorm Date: Wed, 10 Dec 2003 23:56:40 +0000 Subject: [PATCH] decodeHeader() the message subject before building the filename git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6264 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/download.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/download.php b/src/download.php index 242326af..3b160b58 100644 --- a/src/download.php +++ b/src/download.php @@ -96,7 +96,8 @@ if (is_object($message->header->disposition)) { //$filename = decodeHeader($filename, false, false); //Don't want html output nor utf8 because it will return html output $filename = decodeHeader($filename, true, false); //Don't want html output if (strlen($filename) < 1) { - $filename = $subject; + //$filename = decodeHeader($subject, false, false); //Don't want html output nor utf8 because it will return html output + $filename = decodeHeader($subject, true, false); //Don't want html output if ($type1 == 'plain' && $type0 == 'text') $suffix = 'txt'; else if ($type1 == 'richtext' && $type0 == 'text') -- 2.25.1