mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 04:29:21 +03:00
Make sure only scalar values are allowed in $_ENV #1719
This commit is contained in:
parent
547953eb31
commit
780e1f9b92
1 changed files with 1 additions and 0 deletions
|
|
@ -867,6 +867,7 @@ class PGP extends Base implements \SnappyMail\PGP\PGPInterface
|
|||
// Don't localize GnuPG results.
|
||||
$env = $_ENV;
|
||||
$env['LC_ALL'] = 'C';
|
||||
$env = \array_filter($env, fn($var) => \is_scalar($var));
|
||||
|
||||
$proc_pipes = [];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue