From: kink Date: Tue, 1 Apr 2003 16:08:06 +0000 (+0000) Subject: $header (shorthand for $message->header) is not known when this is a raw X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=bc5ff7c97daac21ab7a1bc23a6846d8d1d9bdfe1;p=squirrelmail.git $header (shorthand for $message->header) is not known when this is a raw message we want to download. Fixes #712775 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4710 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/src/download.php b/src/download.php index dcbc23a6..9c6fdd52 100644 --- a/src/download.php +++ b/src/download.php @@ -65,7 +65,7 @@ if ($ent_id) { /* raw message */ $type0 = 'message'; $type1 = 'rfc822'; - $encoding = "US-ASCII"; + $encoding = 'US-ASCII'; } /* @@ -90,8 +90,9 @@ if (is_object($message->header->disposition)) { $filename = $header->getParameter('name'); } } else { - $filename = $header->getParameter('name'); + $filename = $message->header->getParameter('name'); } + $filename = decodeHeader($filename); if (strlen($filename) < 1) { if ($type1 == 'plain' && $type0 == 'text') {