patch #1861717 [export] CSV Escape character not exported right

This commit is contained in:
Marc Delisle
2008-01-02 16:46:42 +00:00
parent 358dfaf08c
commit dafe790a10
2 changed files with 4 additions and 1 deletions

View File

@@ -52,6 +52,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
- bug #1821264 [display] MaxTableList and INFORMATION_SCHEMA
- bug #1859460 [display] Operations and many databases
- bug #1814679 [display] Database selection pagination when switching servers
- patch #1861717 [export] CSV Escape character not exported right,
thanks to nicolasdigraf
2.11.3.0 (2007-12-08)
- patch #1818389 to remove a notice (failed to flush buffer), thanks to

View File

@@ -180,8 +180,9 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
if ($csv_enclosed == '') {
$schema_insert .= $row[$j];
} else {
// also double the escape string if found in the data
$schema_insert .= $csv_enclosed
. str_replace($csv_enclosed, $csv_escaped . $csv_enclosed, $row[$j])
. str_replace($csv_enclosed, $csv_escaped . $csv_enclosed, str_replace($csv_escaped, $csv_escaped . $csv_escaped, $row[$j]))
. $csv_enclosed;
}
} else {