[Process] Fixes issue #11421

This commit is contained in:
Ben 2014-07-19 17:29:08 -06:00
parent 9572918064
commit 02eb765a9c
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}
}