Skip to content
Snippets Groups Projects
Commit e55a3637 authored by Frank Karlitschek's avatar Frank Karlitschek
Browse files

don't call shell_exec if safe_mode is on.

parent ca7882a7
Branches
No related tags found
No related merge requests found
......@@ -406,8 +406,12 @@ class OC_Mount_Config {
* check if smbclient is installed
*/
public static function checksmbclient() {
if(function_exists('shell_exec')) {
$output=shell_exec('which smbclient');
return (empty($output)?false:true);
}else{
return(false);
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment