From f24501ae4c57f6008adbd7ed5108cb4f581e3c4c Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 11 Jul 2024 14:17:26 +0200 Subject: [PATCH] update encryption library --- system/libraries/Encryption.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/system/libraries/Encryption.php b/system/libraries/Encryption.php index b11588afd..f7e0ff37a 100644 --- a/system/libraries/Encryption.php +++ b/system/libraries/Encryption.php @@ -207,7 +207,7 @@ class CI_Encryption { ? 'openssl' : 'mcrypt'; - log_message('debug', "Encryption: Auto-configured driver '".$this->_driver."'."); + log_message('info', "Encryption: Auto-configured driver '".$this->_driver."'."); } empty($params['cipher']) && $params['cipher'] = $this->_cipher; @@ -909,6 +909,10 @@ class CI_Encryption { */ protected static function strlen($str) { + if ($str === null) { + return 0; + } + return (self::$func_overload) ? mb_strlen($str, '8bit') : strlen($str);