summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-12-11 13:20:20 +0100
committerFrank Karlitschek <frank@owncloud.org>2012-12-11 13:20:20 +0100
commite55a3637ce867d84c6de8bffe9898d8444bee212 (patch)
treeb5a6037ca83c5444fec4675213dc678f8efa4490 /apps
parentca7882a7c681045106146f9b8f6d9c61585a463d (diff)
downloadnextcloud-server-e55a3637ce867d84c6de8bffe9898d8444bee212.tar.gz
nextcloud-server-e55a3637ce867d84c6de8bffe9898d8444bee212.zip
don't call shell_exec if safe_mode is on.
Diffstat (limited to 'apps')
-rwxr-xr-xapps/files_external/lib/config.php8
1 files changed, 6 insertions, 2 deletions
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);
+ }
}
/**