escape tmppath shell arg

This commit is contained in:
Georg Ehrke 2013-06-05 10:53:16 +02:00
parent bcc4fca257
commit 749c33f39d

View file

@ -24,7 +24,7 @@ if(!is_null(shell_exec('ffmpeg -version'))) {
$tmppath = \OC_Helper::tmpFile();
//$cmd = 'ffmpeg -y -i ' . escapeshellarg($abspath) . ' -f mjpeg -vframes 1 -ss 1 -s ' . escapeshellarg($maxX) . 'x' . escapeshellarg($maxY) . ' ' . $tmppath;
$cmd = 'ffmpeg -y -i ' . escapeshellarg($abspath) . ' -f mjpeg -vframes 1 -ss 1 ' . $tmppath;
$cmd = 'ffmpeg -y -i ' . escapeshellarg($abspath) . ' -f mjpeg -vframes 1 -ss 1 ' . escapeshellarg($tmppath);
shell_exec($cmd);
unlink($abspath);