From df391141f4e16050ec64a2a29dc613bdf32e27dc Mon Sep 17 00:00:00 2001 From: Retro_Guy Date: Sun, 5 Dec 2021 21:03:02 +0000 Subject: [PATCH] Modification to register.php to allow numbers in tld --- Rocksolid_Light/common/register.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rocksolid_Light/common/register.php b/Rocksolid_Light/common/register.php index 9df4067..0cddf6e 100644 --- a/Rocksolid_Light/common/register.php +++ b/Rocksolid_Light/common/register.php @@ -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 '
Back'; exit(2);