Fix missing escape of double quotes in CSV output.

refs #4910
This commit is contained in:
mrzo2s45 2022-09-08 17:04:18 +02:00 committed by Johannes Meyer
parent f382457a70
commit bdb9fd299b
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class Csv
}
$out = array();
foreach ($row as & $val) {
$out[] = '"' . $val . '"';
$out[] = '"' . str_replace('"', '""', $val) . '"';
}
$csv .= implode(',', $out) . "\r\n";
}