[imp] Downloading attachments with IE5.5 (current RELENG)

Leena Heino Leena.Heino@uta.fi
Fri Nov 1 08:49:24 PST 2002


On Thu, 31 Oct 2002, Michael M Slusarz wrote:

> This was actually fixed in HEAD and RELENG over a month ago... I'm not
> sure why you are still seeing this.
It seems that the fixes to RELENG version were submitted to cvs yesterday.
It fixes the download issues with IE. But it seems that one patch hunk is
missing. This patch hunk is needed to enable users to save messages with
IE.

Here's the patch against imp CVS VERSION:
This patch enables users to save messages with IE.
--- imp/view.php.orig	Fri Nov  1 10:39:19 2002
+++ imp/view.php	Fri Nov  1 10:44:06 2002
@@ -136,6 +136,12 @@
      } else {
          header("Content-Disposition: attachment; filename=$name");
      }
+     /* Overwrite Pragma: and other caching headers for IE. */
+     if ($browser->hasQuirk('cache_ssl_downloads')) {
+         header('Expires: 0');
+         header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
+         header('Pragma: public');
+     }
      break;
 }

>
> michael

-- 
  -- Leena Heino (liinu at uta.fi)



More information about the imp mailing list