View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0003815 | mantisbt | bugtracker | public | 2004-05-07 08:17 | 2004-08-29 01:42 |
Reporter | seanl | Assigned To | vboctor | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | duplicate | ||
Summary | 0003815: 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. | ||||
Tags | No 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' ); | ||||