Skip to content

Commit

Permalink
Another IgnoreVerifyErrors fix
Browse files Browse the repository at this point in the history
Hopefully fixing GnuPG 1.4 compatibility
  • Loading branch information
alecpl committed Mar 22, 2020
1 parent 4cf4939 commit ed11c2b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Crypt/GPG/ProcessHandler.php
Expand Up @@ -493,6 +493,10 @@ public function handleError($line)

$pattern = '/No public key|public key not found/';
if (preg_match($pattern, $line) === 1) {
if ($this->operation == 'decrypt' && !empty($this->data['IgnoreVerifyErrors'])) {
return;
}

$this->errorCode = Crypt_GPG::ERROR_KEY_NOT_FOUND;
return;
}
Expand Down

0 comments on commit ed11c2b

Please sign in to comment.