From 41c15e37ce86a63e9120c37f3ef178acf8736083 Mon Sep 17 00:00:00 2001 From: natec Date: Thu, 8 Nov 2001 06:12:53 +0000 Subject: [PATCH] Fixed bug where more than 2 dots in email not allowed in registration git-svn-id: file:///svn/phpbb/trunk@1288 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/profile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/profile.php b/phpBB/profile.php index c974385dc2..cf039fc658 100644 --- a/phpBB/profile.php +++ b/phpBB/profile.php @@ -49,7 +49,7 @@ function validate_email($email) if($email != "") { - if( preg_match("/^[a-z0-9\.\-_]+@[a-z0-9\-_]+\.([a-z0-9\-_]+\.)?[a-z]+$/is", $email) ) + if( preg_match("/^[a-z0-9\.\-_]+@[a-z0-9\-_]+\.([a-z0-9\-_]+\.)*?[a-z]+$/is", $email) ) { $sql = "SELECT ban_email FROM " . BANLIST_TABLE;