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