mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 10:15:14 +00:00
set publicExponent to false instead of unsetting
This commit is contained in:
parent
2ae82a1bc7
commit
89a73161cb
@ -966,7 +966,7 @@ class RSA
|
|||||||
if (!$rsa->load($key, $type)) {
|
if (!$rsa->load($key, $type)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
unset($rsa->publicExponent);
|
$rsa->publicExponent = false;
|
||||||
|
|
||||||
// don't overwrite the old key if the new key is invalid
|
// don't overwrite the old key if the new key is invalid
|
||||||
$this->load($rsa);
|
$this->load($rsa);
|
||||||
|
Loading…
Reference in New Issue
Block a user