bug #607896
This commit is contained in:
@@ -5,9 +5,13 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2002-10-03 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||
* tbl_dump.php3, libraries/build_dump.lib.php3: Completed fix against
|
||||
bug #607896, thanks to Lo<4C>c.
|
||||
|
||||
2002-10-02 Alexander M. Turek <rabus@users.sourceforge.net>
|
||||
* header.inc.php3, header_prinview.inc.php3: Corrected value for the
|
||||
'Expires' HTTP header.
|
||||
'Expires' HTTP header (Fixed bug #607896).
|
||||
* lang/german-utf-8.inc.php3: Wrong $charset value.
|
||||
|
||||
2002-10-02 Lo<4C>c Chapeaux <lolo@phpheaven.net>
|
||||
|
@@ -563,7 +563,10 @@ if (!defined('PMA_BUILD_DUMP_LIB_INCLUDED')){
|
||||
// bufferized
|
||||
if (!empty($GLOBALS['ob_mode'])
|
||||
&& (isset($GLOBALS['zip']) || isset($GLOBALS['bzip']) || isset($GLOBALS['gzip']))) {
|
||||
header('Expires: 0');
|
||||
if (!isset($GLOBALS['now']) {
|
||||
$GLOBALS['now'] = gmdate('D, d M Y H:i:s') . ' GMT';
|
||||
}
|
||||
header('Expires: ' . $GLOBALS['now']);
|
||||
}
|
||||
} // end while
|
||||
mysql_free_result($result);
|
||||
|
@@ -173,17 +173,18 @@ else {
|
||||
: 'application/octet-stream';
|
||||
}
|
||||
|
||||
$now = gmdate('D, d M Y H:i:s') . ' GMT';
|
||||
|
||||
// Send headers
|
||||
header('Content-Type: ' . $mime_type);
|
||||
header('Expires: ' . $now);
|
||||
// lem9 & loic1: IE need specific headers
|
||||
if (PMA_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
|
||||
|
Reference in New Issue
Block a user