From af54eb141e40ea7dbcc362dcdd10d8cfec675c79 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 30 May 2006 13:46:13 +0000 Subject: [PATCH] Handle correctly AUTO (bug #1497239). --- ChangeLog | 3 ++- libraries/export/csv.php | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6d93107010..1f4a52c9c8 100755 --- a/ChangeLog +++ b/ChangeLog @@ -17,7 +17,8 @@ $Source$ * sql.php: Do not compare db if not defined. * server_binlog.php, server_processlist.php: No need to grab all results to memory. - * libraries/export/htmlexcel.php: Fix extension. + * libraries/export/htmlexcel.php: Fix extension (bug #1497239). + * libraries/export/csv.php: Handle correctly AUTO (bug #1497239). 2006-05-29 Michal Čihař * lang/galician: Update, thanks to Xosé Calvo - xosecalvo. diff --git a/libraries/export/csv.php b/libraries/export/csv.php index f6098fd452..b970348245 100644 --- a/libraries/export/csv.php +++ b/libraries/export/csv.php @@ -70,7 +70,7 @@ function PMA_exportHeader() { $GLOBALS['cvs_columns'] = 'yes'; } } else { - if (empty($csv_terminated)) { + if (empty($csv_terminated) || strtolower($csv_terminated) == 'auto') { $csv_terminated = $GLOBALS['crlf']; } else { $csv_terminated = str_replace('\\r', "\015", $csv_terminated); -- 2.11.4.GIT