mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 06:58:27 +03:00
GnuPG check if shell_exec is disabled
This commit is contained in:
parent
325c748acc
commit
1b0962cce1
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue