From bc5ff7c97daac21ab7a1bc23a6846d8d1d9bdfe1 Mon Sep 17 00:00:00 2001 From: kink Date: Tue, 1 Apr 2003 16:08:06 +0000 Subject: [PATCH] $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 --- src/download.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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') { -- 2.25.1