We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 11acf64 commit 08a0bf7Copy full SHA for 08a0bf7
Crypt/GPG/Engine.php
@@ -1831,7 +1831,8 @@ private function _closePipe($pipeNumber)
1831
*/
1832
private function _closeIdleAgents()
1833
{
1834
- if ($this->_gpgconf) {
+ // Note: We check that this binary is executable again for security reasons
1835
+ if ($this->_gpgconf && is_executable($this->_gpgconf)) {
1836
// before 2.1.13 --homedir wasn't supported, use env variable
1837
$env = ['GNUPGHOME' => $this->_homedir];
1838
$cmd = $this->_gpgconf . ' --kill gpg-agent';
0 commit comments