From 89a73161cbe9887526928a223758d2009162216b Mon Sep 17 00:00:00 2001 From: DAB Date: Fri, 25 Mar 2016 22:10:36 -0500 Subject: [PATCH] set publicExponent to false instead of unsetting --- phpseclib/Crypt/RSA.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index ac9101ae..48192c58 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -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);