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 a747963..8b377a4 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);
 ?>