Use actual MIME type for CSV.

This commit is contained in:
Michal Čihař
2005-07-26 14:28:06 +00:00
parent e4e51a19e8
commit c585360d8a
2 changed files with 4 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2005-07-26 Michal Čihař <michal@cihar.com>
* export.php: Use actual MIME type for CSV.
2005-07-25 Marc Delisle <lem9@users.sourceforge.net> 2005-07-25 Marc Delisle <lem9@users.sourceforge.net>
* tbl_change.php: insert another new row: dropdown choice should be sticky * tbl_change.php: insert another new row: dropdown choice should be sticky

View File

@@ -212,7 +212,7 @@ if ($asfile) {
// Generate basic dump extension // Generate basic dump extension
if ($type == 'csv') { if ($type == 'csv') {
$filename .= '.csv'; $filename .= '.csv';
$mime_type = 'text/x-comma-separated-values'; $mime_type = 'text/comma-separated-values';
} else if ($type == 'htmlexcel') { } else if ($type == 'htmlexcel') {
$filename .= '.xls'; $filename .= '.xls';
$mime_type = 'application/vnd.ms-excel'; $mime_type = 'application/vnd.ms-excel';