Commit ef146f87 authored by samuel.mortenson's avatar samuel.mortenson Committed by Samuel Mortenson

Issue #3038946 by samuel.mortenson: Executable finder does not work after chdir() is called

parent 4ff1743a
......@@ -28,6 +28,9 @@ trait ExecutableFinderTrait {
$args[] = $arg;
}
}
if (isset($_SERVER['PWD']) && !is_file($args[0]) && is_file($_SERVER['PWD'] . '/' . $args[0])) {
$args[0] = $_SERVER['PWD'] . '/' . $args[0];
}
return implode(' ', $args);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment