mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-24 12:18:51 +00:00
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
This commit is contained in:
parent
8ef00898b3
commit
41c15e37ce
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue