Back to Content-Type application/x-bzip2 on bzip2 export (bug #1106652).
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2005-01-24 Michal Čihař <michal@cihar.com>
|
||||||
|
* export.php: Back to Content-Type application/x-bzip2 on bzip2 export
|
||||||
|
(bug #1106652).
|
||||||
|
|
||||||
2005-01-23 Alexander M. Turek <me@derrabus.de>
|
2005-01-23 Alexander M. Turek <me@derrabus.de>
|
||||||
* libraries/sqlparser.data.php: Added some keywords.
|
* libraries/sqlparser.data.php: Added some keywords.
|
||||||
|
|
||||||
|
@@ -238,10 +238,14 @@ if ($asfile) {
|
|||||||
$content_encoding = '';
|
$content_encoding = '';
|
||||||
if (isset($compression) && $compression == 'bzip') {
|
if (isset($compression) && $compression == 'bzip') {
|
||||||
$filename .= '.bz2';
|
$filename .= '.bz2';
|
||||||
$content_encoding = 'x-bzip2';
|
// browsers don't like this:
|
||||||
|
//$content_encoding = 'x-bzip2';
|
||||||
|
$mime_type = 'application/x-bzip2';
|
||||||
} else if (isset($compression) && $compression == 'gzip') {
|
} else if (isset($compression) && $compression == 'gzip') {
|
||||||
$filename .= '.gz';
|
$filename .= '.gz';
|
||||||
|
// needed to avoid recompression by server modules like mod_gzip:
|
||||||
$content_encoding = 'x-gzip';
|
$content_encoding = 'x-gzip';
|
||||||
|
$mime_type = 'application/x-gzip';
|
||||||
} else if (isset($compression) && $compression == 'zip') {
|
} else if (isset($compression) && $compression == 'zip') {
|
||||||
$filename .= '.zip';
|
$filename .= '.zip';
|
||||||
$mime_type = 'application/zip';
|
$mime_type = 'application/zip';
|
||||||
|
Reference in New Issue
Block a user