set publicExponent to false instead of unsetting

This commit is contained in:
DAB 2016-03-25 22:10:36 -05:00
parent 2ae82a1bc7
commit 89a73161cb

View File

@ -966,7 +966,7 @@ class RSA
if (!$rsa->load($key, $type)) {
return false;
}
unset($rsa->publicExponent);
$rsa->publicExponent = false;
// don't overwrite the old key if the new key is invalid
$this->load($rsa);