From 8ade0a6e85faab0579d495bb34c13f2131d05a15 Mon Sep 17 00:00:00 2001 From: odain Date: Tue, 21 Oct 2025 08:09:48 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B04058=20-=20fix=20PHP=20Deprecated=20base?= =?UTF-8?q?64=5Fdecodestrlen=20:=20Passing=20nul?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/simplecrypt.class.inc.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/core/simplecrypt.class.inc.php b/core/simplecrypt.class.inc.php index 0be60cf20..170ddbe20 100644 --- a/core/simplecrypt.class.inc.php +++ b/core/simplecrypt.class.inc.php @@ -130,15 +130,13 @@ class SimpleCrypt */ function Decrypt($key, $string) { - try{ - return $this->oEngine->Decrypt($key,$string); - } catch(\Exception $e){ - if (strlen($string)==0){ - IssueLog::Warning("Cannot decrypt empty/null value", null, ['msg' => $e->getMessage(), 'stack' => $e->getTraceAsString()]); - return $string; - } - throw $e; - } + if (is_null($string) || strlen($string) == 0) { + IssueLog::Warning("Cannot decrypt empty/null value"); + + return $string; + } + + return $this->oEngine->Decrypt($key, $string); } /**