MDL-45221 admin: configexecutable admin settings should only accept files
This commit is contained in:
+1
-1
@@ -2466,7 +2466,7 @@ class admin_setting_configexecutable extends admin_setting_configfile {
|
||||
$default = $this->get_defaultsetting();
|
||||
|
||||
if ($data) {
|
||||
if (file_exists($data) and is_executable($data)) {
|
||||
if (file_exists($data) and !is_dir($data) and is_executable($data)) {
|
||||
$executable = '<span class="pathok">✔</span>';
|
||||
} else {
|
||||
$executable = '<span class="patherror">✘</span>';
|
||||
|
||||
Reference in New Issue
Block a user