From: Frank Karlitschek Date: Tue, 11 Dec 2012 12:20:20 +0000 (+0100) Subject: don't call shell_exec if safe_mode is on. X-Git-Tag: v5.0.0alpha1~347^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e55a3637ce867d84c6de8bffe9898d8444bee212;p=nextcloud-server.git don't call shell_exec if safe_mode is on. --- diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index afd28288b2e..e37b610000a 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -406,8 +406,12 @@ class OC_Mount_Config { * check if smbclient is installed */ public static function checksmbclient() { - $output=shell_exec('which smbclient'); - return (empty($output)?false:true); + if(function_exists('shell_exec')) { + $output=shell_exec('which smbclient'); + return (empty($output)?false:true); + }else{ + return(false); + } } /**