From 40dc3deabbaf940a95980db05a23cf9a25374690 Mon Sep 17 00:00:00 2001 From: Stephen Abello Date: Tue, 4 Jul 2023 13:56:31 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B06495=20-=20Fix=20strlen=20crashing=20wit?= =?UTF-8?q?h=20null=20value=20in=20AttributePassword?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/attributedef.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 9fe7fe019..88c0faf7c 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -4188,7 +4188,7 @@ class AttributePassword extends AttributeString implements iAttributeNoGroupBy public function GetAsHTML($sValue, $oHostObject = null, $bLocalize = true) { - if (strlen($sValue) == 0) + if (utils::IsNullOrEmptyString($sValue)) { return ''; }