Update functions_validate.php

This commit is contained in:
Roman Kelesidis 2025-01-08 15:40:30 +07:00
parent d9ee9e1cce
commit f09666ed26

View File

@ -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;
}
}