escape tmppath shell arg

remotes/origin/stable6
Georg Ehrke 12 years ago
parent bcc4fca257
commit 749c33f39d
  1. 2
      lib/preview/movies.php

@ -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);

Loading…
Cancel
Save