Changed yaml export to double quotes for strings

This commit is contained in:
Jacob Middag
2011-01-06 15:10:55 +01:00
committed by Michal Čihař
parent 31cd4bdd6a
commit df97b1d2c0

View File

@@ -167,11 +167,8 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query)
continue;
}
$record[$i] = preg_replace('/\r\n|\r|\n/', $crlf.' ', $record[$i]);
if (strstr($record[$i], $crlf))
$record[$i] = '|-' . $crlf . ' '.$record[$i];
$buffer .= ' ' . $column . ': ' . $record[$i] . $crlf;
$record[$i] = str_replace(array('\\', '"', "\n", "\r"), array('\\\\', '\"', '\n', '\r'), $record[$i]);
$buffer .= ' ' . $column . ': "' . $record[$i] . '"' . $crlf;
}
if (! PMA_exportOutputHandler($buffer)) {