From 20aba0fd7c7722165451f60b3ca6547dc5d80db1 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Mon, 2 Dec 2019 20:05:07 +0200 Subject: [PATCH] Fixed bad str_replace('...', null) parameter in CSVFormatter --- system/src/Grav/Framework/File/Formatter/CsvFormatter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Framework/File/Formatter/CsvFormatter.php b/system/src/Grav/Framework/File/Formatter/CsvFormatter.php index d42249696..2b159f686 100644 --- a/system/src/Grav/Framework/File/Formatter/CsvFormatter.php +++ b/system/src/Grav/Framework/File/Formatter/CsvFormatter.php @@ -97,7 +97,7 @@ class CsvFormatter extends AbstractFormatter if ($null_replace) { array_walk($csv_line, static function (&$el) use ($null_replace) { - $el = str_replace($null_replace, null, $el); + $el = str_replace($null_replace, "\0", $el); }); }