[Process] Fixes issue #11421
This commit is contained in:
parent
9572918064
commit
02eb765a9c
@ -59,8 +59,7 @@ class ExecutableFinder
|
||||
if (is_dir($path)) {
|
||||
$dirs[] = $path;
|
||||
} else {
|
||||
$file = str_replace(dirname($path), '', $path);
|
||||
if ($file == $name && is_executable($path)) {
|
||||
if (basename($path) == $name && is_executable($path)) {
|
||||
return $path;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user