don't call shell_exec if safe_mode is on.
This commit is contained in:
parent
ca7882a7c6
commit
e55a3637ce
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue