Skip to content

Commit f95b039

Browse files
committed
Merge branch 'moosa-1.0' into moosa-2.0
2 parents 74435e1 + 149b4d2 commit f95b039

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

phpseclib/Crypt/RSA.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3044,7 +3044,9 @@ function _rsassa_pkcs1_v1_5_verify($m, $s)
30443044
}
30453045

30463046
// Compare
3047-
return $this->_equals($em, $em2) || $this->_equals($em, $em3);
3047+
3048+
return ($em2 !== false && $this->_equals($em, $em2)) ||
3049+
($em3 !== false && $this->_equals($em, $em3));
30483050
}
30493051

30503052
/**

0 commit comments

Comments
 (0)