Changed yaml export to double quotes for strings
This commit is contained in:

committed by
Michal Čihař

parent
31cd4bdd6a
commit
df97b1d2c0
@@ -167,11 +167,8 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$record[$i] = preg_replace('/\r\n|\r|\n/', $crlf.' ', $record[$i]);
|
$record[$i] = str_replace(array('\\', '"', "\n", "\r"), array('\\\\', '\"', '\n', '\r'), $record[$i]);
|
||||||
if (strstr($record[$i], $crlf))
|
$buffer .= ' ' . $column . ': "' . $record[$i] . '"' . $crlf;
|
||||||
$record[$i] = '|-' . $crlf . ' '.$record[$i];
|
|
||||||
|
|
||||||
$buffer .= ' ' . $column . ': ' . $record[$i] . $crlf;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! PMA_exportOutputHandler($buffer)) {
|
if (! PMA_exportOutputHandler($buffer)) {
|
||||||
|
Reference in New Issue
Block a user