diff --git a/library/Icinga/File/Csv.php b/library/Icinga/File/Csv.php index 93792417b..56ee233ee 100644 --- a/library/Icinga/File/Csv.php +++ b/library/Icinga/File/Csv.php @@ -37,7 +37,7 @@ class Csv } $out = array(); foreach ($row as & $val) { - $out[] = '"' . $val . '"'; + $out[] = '"' . str_replace('"', '""', $val) . '"'; } $csv .= implode(',', $out) . "\r\n"; }