]> source.dussan.org Git - nextcloud-server.git/commitdiff
don't call shell_exec if safe_mode is on.
authorFrank Karlitschek <frank@owncloud.org>
Tue, 11 Dec 2012 12:20:20 +0000 (13:20 +0100)
committerFrank Karlitschek <frank@owncloud.org>
Tue, 11 Dec 2012 12:20:20 +0000 (13:20 +0100)
apps/files_external/lib/config.php

index afd28288b2e8b9244fc5e3846852212d3dab2104..e37b610000ac8174d6c5a48530664973a7b49ad7 100755 (executable)
@@ -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);
+               }
        }
 
        /**