Skip to content

Commit

Permalink
RSA: fix for PHP8
Browse files Browse the repository at this point in the history
  • Loading branch information
terrafrost committed Apr 3, 2021
1 parent 8af4280 commit 149b4d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phpseclib/Crypt/RSA.php
Expand Up @@ -3128,7 +3128,9 @@ function _rsassa_pkcs1_v1_5_verify($m, $s)
}

// Compare
return $this->_equals($em, $em2) || $this->_equals($em, $em3);

return ($em2 !== false && $this->_equals($em, $em2)) ||
($em3 !== false && $this->_equals($em, $em3));
}

/**
Expand Down

0 comments on commit 149b4d2

Please sign in to comment.