From c32cf1f61f0ba53b8b53de0e19782df4a4c44946 Mon Sep 17 00:00:00 2001 From: David Coutadeur Date: Tue, 2 Jul 2024 16:24:52 +0200 Subject: [PATCH] remove utf8_decode function (#931) --- lib/functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions.inc.php b/lib/functions.inc.php index 0e92bff3..14df68d7 100644 --- a/lib/functions.inc.php +++ b/lib/functions.inc.php @@ -90,7 +90,7 @@ function check_password_strength( $password, $oldpassword, $pwd_policy_config, $ $result = ""; - $length = strlen(utf8_decode($password)); + $length = mb_strlen($password, mb_detect_encoding($password)); preg_match_all("/[a-z]/", $password, $lower_res); $lower = count( $lower_res[0] ); preg_match_all("/[A-Z]/", $password, $upper_res);