From f09666ed260449eeffcd3f910656900fb924911f Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Wed, 8 Jan 2025 15:40:30 +0700 Subject: [PATCH] Update functions_validate.php --- library/includes/functions_validate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/includes/functions_validate.php b/library/includes/functions_validate.php index 84386276..04839c9f 100644 --- a/library/includes/functions_validate.php +++ b/library/includes/functions_validate.php @@ -78,7 +78,7 @@ function validate_email ($email, $check_ban_and_taken = true) { return $lang['EMAIL_INVALID']; } - if (strlen($email) > USEREMAIL_MAX_LENGTH) + if (mb_strlen($email, 'UTF-8') > USEREMAIL_MAX_LENGTH) { return $lang['EMAIL_TOO_LONG']; } @@ -111,4 +111,4 @@ function validate_email ($email, $check_ban_and_taken = true) } return false; -} \ No newline at end of file +}