[dev] IE and download problems
Leena Heino
Leena.Heino@uta.fi
Mon, 30 Sep 2002 20:57:44 +0300 (EEST)
On Mon, 30 Sep 2002, Leena Heino wrote:
> Here's the patch. This patch has been tested with Netscape 4.79,
> IE 5.5sp2, IE 6sp1 and Mozilla 1.1.
Here's the patch that adds the "Pragma: public" to folders.php and
view.php:
--- imp/folders.php.orig Sat Jun 22 08:43:51 2002
+++ imp/folders.php Mon Sep 30 20:47:14 2002
@@ -146,6 +146,7 @@
* things work. I don't really want to know. */
if ($browser->hasQuirk('break_disposition_header')) {
header('Content-Disposition: filename=' . $download_folders[0] . '.mbox');
+ header("Pragma: public");
} else {
header('Content-Disposition: attachment; filename=' . $download_folders[0] . '.mbox');
}
--- imp/view.php.orig Mon Sep 30 18:05:35 2002
+++ imp/view.php Mon Sep 30 20:52:13 2002
@@ -55,6 +55,7 @@
* things work. I don't really want to know. */
if ($browser->hasQuirk('break_disposition_header')) {
header('Content-Disposition: filename=' . MIME::decode($mime->name));
+ header("Pragma: public");
} else {
header('Content-Disposition: attachment; filename=' . MIME::decode($mime->name));
}
@@ -121,6 +122,7 @@
* things work. I don't really want to know. */
if ($browser->hasQuirk('break_disposition_header')) {
header("Content-Disposition: filename=$name");
+ header("Pragma: public");
} else {
header("Content-Disposition: attachment; filename=$name");
}
--
-- Leena Heino (liinu at uta.fi)