From dbdf1f8ae6fe00e4d47cc5387feeb1c3ca1b8856 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Tue, 8 Mar 2022 12:49:49 -0500 Subject: [PATCH] use mb --- signup/signup-handler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/signup/signup-handler.php b/signup/signup-handler.php index e5a04c7..d831568 100644 --- a/signup/signup-handler.php +++ b/signup/signup-handler.php @@ -24,7 +24,7 @@ function add_ban_info($name, $email) { function starts_with($string, $prefix) { - return substr($string, 0, strlen($prefix)) === $prefix; + return mb_substr($string, 0, mb_strlen($prefix)) === $prefix; } function is_ssh_pubkey($string)