From b67e316dea5c3f9e411784dbcde3ace4fc0f9ecd Mon Sep 17 00:00:00 2001 From: thomppj Date: Wed, 6 Dec 2000 00:36:14 +0000 Subject: [PATCH] Fixed IE/SSL/Attachment Bug!!! git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@864 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/download.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/download.php b/src/download.php index a7479639..8b377a41 100644 --- a/src/download.php +++ b/src/download.php @@ -104,6 +104,8 @@ // viewer (built in to squirrelmail). Otherwise, it sets the // content-type as application/octet-stream + header("Pragma: "); + header("Content-Description: SquirrelMail Attachment"); if ($absolute_dl == "true") { switch($type0) { case "text": @@ -140,13 +142,14 @@ break; default: $body = decodeBody($body, $header->encoding); - header("Content-Disposition: attachment; filename=\"$filename\""); +// header("Pragma: "); header("Content-type: $type0/$type1; name=\"$filename\""); + header("Content-Disposition: attachment; filename=\"$filename\""); echo $body; break; } - } - + } + sqimap_mailbox_close($imapConnection); sqimap_logout($imapConnection); ?> -- 2.25.1