mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 01:28:08 -04:00
escape tmppath shell arg
This commit is contained in:
parent
bcc4fca257
commit
749c33f39d
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue