Fixed IE/SSL/Attachment Bug!!!
authorthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 6 Dec 2000 00:36:14 +0000 (00:36 +0000)
committerthomppj <thomppj@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 6 Dec 2000 00:36:14 +0000 (00:36 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@864 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/download.php

index a74796399bb58a698909c3ae6c0e4796a27d2bdc..8b377a41e820495928c4df5dcc1b8037bd23b43b 100644 (file)
    //    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":
             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);
 ?>