Modification to register.php to allow numbers in tld

This commit is contained in:
Retro_Guy 2021-12-05 21:03:02 +00:00
parent 44871b044a
commit df391141f4
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ foreach($users as $user) {
}
}
if (!preg_match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$^",$user_email)) {
if (!preg_match("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z0-9]{2,3})$^",$user_email)) {
echo "Email must be in the form of an email address\r\n";
echo '<br /><a href="register.php">Back</a>';
exit(2);