summaryrefslogtreecommitdiffstats
path: root/lib/private/preview/movies.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-10-17 14:31:07 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-10-17 14:31:07 +0200
commit521277b8b642ee67c7f89682a6bead2faad41c72 (patch)
tree8515ea8084467dd197a4fc7cee2d627e2a9dd2c5 /lib/private/preview/movies.php
parent9c8d1190c0295e4ded8e9812d842af5c65679926 (diff)
downloadnextcloud-server-521277b8b642ee67c7f89682a6bead2faad41c72.tar.gz
nextcloud-server-521277b8b642ee67c7f89682a6bead2faad41c72.zip
only call shell_exec if enabled
Diffstat (limited to 'lib/private/preview/movies.php')
-rw-r--r--lib/private/preview/movies.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/preview/movies.php b/lib/private/preview/movies.php
index dc50d160346..4d85e23c63c 100644
--- a/lib/private/preview/movies.php
+++ b/lib/private/preview/movies.php
@@ -11,7 +11,7 @@ namespace OC\Preview;
// movie preview is currently not supported on Windows
if (!\OC_Util::runningOnWindows()) {
$isShellExecEnabled = !in_array('shell_exec', explode(', ', ini_get('disable_functions')));
- $whichAVCONV = shell_exec('which avconv');
+ $whichAVCONV = ($isShellExecEnabled ? shell_exec('which avconv') : '');
$isAVCONVAvailable = !empty($whichAVCONV);
if($isShellExecEnabled && $isAVCONVAvailable) {