summaryrefslogtreecommitdiffstats
path: root/lib/preview
diff options
context:
space:
mode:
authorGeorg Ehrke <georg@ownCloud.com>2013-06-05 10:53:16 +0200
committerGeorg Ehrke <georg@ownCloud.com>2013-06-05 10:53:16 +0200
commit749c33f39d9452e2c1fdca718e3abcdb7c4a9dd0 (patch)
tree05f5620cc20ac30009d10ea97c4b9047c1f3b544 /lib/preview
parentbcc4fca25740894249f1b1e8bf254beeadd3e74f (diff)
downloadnextcloud-server-749c33f39d9452e2c1fdca718e3abcdb7c4a9dd0.tar.gz
nextcloud-server-749c33f39d9452e2c1fdca718e3abcdb7c4a9dd0.zip
escape tmppath shell arg
Diffstat (limited to 'lib/preview')
-rw-r--r--lib/preview/movies.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/preview/movies.php b/lib/preview/movies.php
index 18e9d4f778c..8cd50263e2a 100644
--- a/lib/preview/movies.php
+++ b/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);