Skip to content

Commit

Permalink
remove utf8_decode function (#931)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Coutadeur committed Jul 2, 2024
1 parent 224e63e commit c32cf1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c32cf1f

Please sign in to comment.