From 0ee2a63e18b6ed9535bdfea8754a8e714116c349 Mon Sep 17 00:00:00 2001 From: Roland Starke Date: Wed, 3 Oct 2018 20:32:20 +0200 Subject: [PATCH] concat allow special chars in filename --- src/FFMpeg/Media/Concat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FFMpeg/Media/Concat.php b/src/FFMpeg/Media/Concat.php index 81c8a7c..092e3a3 100644 --- a/src/FFMpeg/Media/Concat.php +++ b/src/FFMpeg/Media/Concat.php @@ -105,7 +105,7 @@ class Concat extends AbstractMediaType if($count_videos != 0) $line .= "\n"; - $line .= "file ".$videoPath; + $line .= "file " . addcslashes($videoPath, '\'"\\\0 '); fwrite($fileStream, $line);