From c73b9f0884b36d1e0e4fb0e9d5348681ae5b8bee Mon Sep 17 00:00:00 2001 From: terrafrost Date: Fri, 15 Jul 2022 12:28:56 -0500 Subject: [PATCH] RSA/XML: rm redundant check --- phpseclib/Crypt/RSA/Formats/Keys/XML.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/phpseclib/Crypt/RSA/Formats/Keys/XML.php b/phpseclib/Crypt/RSA/Formats/Keys/XML.php index 5af053d8..d9b7530e 100644 --- a/phpseclib/Crypt/RSA/Formats/Keys/XML.php +++ b/phpseclib/Crypt/RSA/Formats/Keys/XML.php @@ -42,10 +42,6 @@ abstract class XML */ public static function load($key, $password = '') { - if (!extension_loaded('dom')) { - return false; - } - if (!Strings::is_stringable($key)) { throw new \UnexpectedValueException('Key should be a string - not a ' . gettype($key)); }