decodeHeader() the message subject before building the filename
authoralex-brainstorm <alex-brainstorm@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 10 Dec 2003 23:56:40 +0000 (23:56 +0000)
committeralex-brainstorm <alex-brainstorm@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 10 Dec 2003 23:56:40 +0000 (23:56 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6264 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/download.php

index 242326af56840984d57f582e5755695808be9a9a..3b160b5888f7a97e1ba51f96796fff549215a764 100644 (file)
@@ -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')