GnuPG check if shell_exec is disabled

This commit is contained in:
the-djmaze 2024-04-22 13:00:22 +02:00
parent 325c748acc
commit 1b0962cce1

View file

@ -483,7 +483,7 @@ abstract class Base
protected static function findBinary($name) : ?string
{
$binary = \trim((string) `which $name`);
$binary = \function_exists('shell_exec') ? \trim((string) `which $name`) : '';
if ($binary && \RainLoop\Utils::inOpenBasedir($binary) && \is_executable($binary)) {
return $binary;
}