diff --git a/print_all_bug_page_excel.php b/print_all_bug_page_excel.php index 1eb33814ab..e3c066a985 100644 --- a/print_all_bug_page_excel.php +++ b/print_all_bug_page_excel.php @@ -17,8 +17,9 @@ # excel or html export if ( $f_type_page != 'html' ) { $t_export_title = $g_page_title."_excel"; + $t_export_title = ereg_replace('[\/:*?"<>|]', '', $t_export_title); header('Content-Type: application/vnd.ms-excel'); - header( "Content-Disposition: attachment; filename=$t_export_title.xls" ); + header('Content-Disposition: attachment; filename="' . $t_export_title . '.xls"'); } # check to see if the cookie does not exist diff --git a/print_all_bug_page_word.php b/print_all_bug_page_word.php index 1094765207..b77770fcaf 100644 --- a/print_all_bug_page_word.php +++ b/print_all_bug_page_word.php @@ -12,14 +12,14 @@ |]', '', $t_export_title); header('Content-Type: application/msword'); - header( "Content-Disposition: attachment; filename=$t_export_title.doc" ); + header('Content-Disposition: attachment; filename="' . $t_export_title . '.doc"'); } - + # check to see if the cookie does not exist if ( empty( $g_view_all_cookie_val ) ) { print_header_redirect( 'view_all_set.php?f_type=0&f_print=1' ); @@ -311,8 +311,8 @@ - -   +   + @@ -328,8 +328,8 @@ - -   +   + @@ -345,8 +345,8 @@ - -   +   + @@ -362,8 +362,8 @@ - -   +   + @@ -379,8 +379,8 @@ - -   +   + @@ -396,8 +396,8 @@ - -   +   + @@ -407,8 +407,8 @@ - -   +   +