View Issue Details

IDProjectCategoryView StatusLast Update
0003815mantisbtbugtrackerpublic2004-08-29 01:42
Reporterseanl Assigned Tovboctor  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Summary0003815: 0.18.2: Downloading attachments fails for IE6 with SSL connection
Description

When mantis is served via SSL, IE6 (and possibly earlier versions) fails to download attachments due to the no-cache headers. I regard this as a bug in IE6, but it can be worked around by disabling the no-cache headers for the file. I've attached a patch against current CVS that fixes this - I don't know if this is how you guys would want to implement it.

TagsNo tags attached.
Attached Files
mantis_download_fix.patch (1,550 bytes)   
? patch
? core/.new.custom_fi
Index: core.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core.php,v
retrieving revision 1.32
diff -u -r1.32 core.php
--- core.php	5 Feb 2004 01:17:13 -0000	1.32
+++ core.php	7 May 2004 11:44:33 -0000
@@ -86,11 +86,14 @@
 	# OPENED ANYWHERE ELSE.
 	require_once( $t_core_path.'database_api.php' );
 
-	# Headers to prevent caching
-	header( 'Pragma: no-cache' );
-	header( 'Expires: Fri, 01 Jan 1999 00:00:00 GMT' );
-	header( 'Cache-Control: no-store, no-cache, must-revalidate' );
-	header( 'Cache-Control: post-check=0, pre-check=0', false );
+    if (!isset($suppress_cache_headers))
+    {
+	    # Headers to prevent caching
+	    header( 'Pragma: no-cache' );
+	    header( 'Expires: Fri, 01 Jan 1999 00:00:00 GMT' );
+	    header( 'Cache-Control: no-store, no-cache, must-revalidate' );
+	    header( 'Cache-Control: post-check=0, pre-check=0', false );
+	}
 
 	# SEND USER-DEFINED HEADERS
 	foreach( config_get( 'custom_headers' ) as $t_header ) {
Index: file_download.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/file_download.php,v
retrieving revision 1.27
diff -u -r1.27 file_download.php
--- file_download.php	18 Mar 2004 14:02:28 -0000	1.27
+++ file_download.php	7 May 2004 11:44:33 -0000
@@ -13,6 +13,7 @@
 	# Add file and redirect to the referring page
 ?>
 <?php
+    $suppress_cache_headers = true;
 	require_once( 'core.php' );
 	
 	$t_core_path = config_get( 'core_path' );
mantis_download_fix.patch (1,550 bytes)   

Relationships

duplicate of 0003553 closedrfoster Cannot download attached files with IE5.5 or better over SSL 
has duplicate 0005195 closedthraxisp Project doucmentation: Can upload, cannot download 

Activities