mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-11 16:15:52 +00:00
RSA: only set $this->current when it's already set
This commit is contained in:
parent
5888c6cef6
commit
15677715e3
@ -1357,12 +1357,10 @@ class Crypt_RSA {
|
||||
*/
|
||||
function _stop_element_handler($parser, $name)
|
||||
{
|
||||
//$name = strtoupper($name);
|
||||
if ($name == 'RSAKEYVALUE') {
|
||||
return;
|
||||
if (isset($this->current)) {
|
||||
$this->current = new Math_BigInteger(base64_decode($this->current), 256);
|
||||
unset($this->current);
|
||||
}
|
||||
$this->current = new Math_BigInteger(base64_decode($this->current), 256);
|
||||
unset($this->current);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user