From: thomppj Date: Wed, 6 Dec 2000 00:36:14 +0000 (+0000) Subject: Fixed IE/SSL/Attachment Bug!!! X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=b67e316dea5c3f9e411784dbcde3ace4fc0f9ecd;hp=1d7e3ec9120416c8759521324c1c6315ad47bcda Fixed IE/SSL/Attachment Bug!!! git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@864 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- 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); ?>