[Process] Fixes issue #11421

This commit is contained in:
Ben 2014-07-19 17:29:08 -06:00
parent 9572918064
commit 02eb765a9c

View File

@ -59,8 +59,7 @@ class ExecutableFinder
if (is_dir($path)) { if (is_dir($path)) {
$dirs[] = $path; $dirs[] = $path;
} else { } else {
$file = str_replace(dirname($path), '', $path); if (basename($path) == $name && is_executable($path)) {
if ($file == $name && is_executable($path)) {
return $path; return $path;
} }
} }