diff --git a/tbl_dump.php3 b/tbl_dump.php3 index 6bfaf489b..6ffed5339 100755 --- a/tbl_dump.php3 +++ b/tbl_dump.php3 @@ -139,11 +139,17 @@ else { // Send headers header('Content-Type: ' . $mime_type); - // lem9: we need "inline" instead of "attachment" for IE 5.5 - $content_disp = (USR_BROWSER_AGENT == 'IE') ? 'inline' : 'attachment'; - header('Content-Disposition: ' . $content_disp . '; filename="' . $filename . '.' . $ext . '"'); - header('Pragma: no-cache'); - header('Expires: 0'); + // lem9 & loic1: IE need specific headers + if (USR_BROWSER_AGENT == 'IE') { + header('Content-Disposition: inline; filename="' . $filename . '.' . $ext . '"'); + header('Expires: 0'); + header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); + header('Pragma: public'); + } else { + header('Content-Disposition: attachment; filename="' . $filename . '.' . $ext . '"'); + header('Expires: 0'); + header('Pragma: no-cache'); + } } // end download