Index: csv_export.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/csv_export.php,v retrieving revision 1.19 diff -u -r1.19 csv_export.php --- csv_export.php 30 May 2004 01:49:31 -0000 1.19 +++ csv_export.php 11 Jun 2004 05:23:20 -0000 @@ -41,6 +41,10 @@ $t_filename = csv_get_default_filename(); # Send headers to browser to activate mime loading + + # Make sure that IE can download the attachments under https. + header( 'Pragma: public' ); + header( 'Content-Type: text/plain; name=' . $t_filename ); header( 'Content-Transfer-Encoding: BASE64;' ); header( 'Content-Disposition: attachment; filename=' . $t_filename ); 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 11 Jun 2004 05:23:20 -0000 @@ -65,9 +65,15 @@ access_ensure_project_level( config_get( 'view_proj_doc_threshold' ), $v_project_id ); break; } + + # Make sure that IE can download the attachments under https. + header( 'Pragma: public' ); + header( 'Content-type: ' . $v_file_type ); header( 'Content-Length: ' . $v_filesize ); - header( 'Content-Disposition: filename=' . file_get_display_name( $v_filename ) ); + + # Added Quotes (") around file name. + header( 'Content-Disposition: filename="' . file_get_display_name( $v_filename ) . '"' ); header( 'Content-Description: Download Data' ); # dump file content to the connection. Index: print_all_bug_page_excel.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/print_all_bug_page_excel.php,v retrieving revision 1.38 diff -u -r1.38 print_all_bug_page_excel.php --- print_all_bug_page_excel.php 30 May 2004 01:49:31 -0000 1.38 +++ print_all_bug_page_excel.php 11 Jun 2004 05:23:20 -0000 @@ -36,6 +36,10 @@ if ( $f_type_page != 'html' ) { $t_export_title = $g_page_title."_excel"; $t_export_title = ereg_replace( '[\/:*?"<>|]', '', $t_export_title ); + + # Make sure that IE can download the attachments under https. + header( 'Pragma: public' ); + header( 'Content-Type: application/vnd.ms-excel' ); header( 'Content-Disposition: attachment; filename="' . $t_export_title . '.xls"' ); } Index: print_all_bug_page_word.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/print_all_bug_page_word.php,v retrieving revision 1.45 diff -u -r1.45 print_all_bug_page_word.php --- print_all_bug_page_word.php 5 Mar 2004 02:27:51 -0000 1.45 +++ print_all_bug_page_word.php 11 Jun 2004 05:23:20 -0000 @@ -38,6 +38,10 @@ if ( $f_type_page != 'html' ) { $t_export_title = $g_page_title."_word"; $t_export_title = ereg_replace( '[\/:*?"<>|]', '', $t_export_title ); + + # Make sure that IE can download the attachments under https. + header( 'Pragma: public' ); + header( 'Content-Type: application/msword' ); header( 'Content-Disposition: attachment; filename="' . $t_export_title . '.doc"' ); }