Skip to content
Snippets Groups Projects
Commit 749c33f3 authored by Georg Ehrke's avatar Georg Ehrke
Browse files

escape tmppath shell arg

parent bcc4fca2
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment