mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
a "fix" for #529920... Now banned emails can appear in *user*@domain.com
git-svn-id: file:///svn/phpbb/trunk@2325 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -113,7 +113,7 @@ function validate_email($email)
|
||||
{
|
||||
while( $row = $db->sql_fetchrow($result) )
|
||||
{
|
||||
$match_email = str_replace('*@', '.*@', $row['ban_email']);
|
||||
$match_email = str_replace('*', '.*', $row['ban_email']);
|
||||
if ( preg_match('/^' . $match_email . '$/is', $email) )
|
||||
{
|
||||
return array('error' => true, 'error_msg' => $lang['Email_banned']);
|
||||
@@ -181,4 +181,4 @@ function validate_optional_fields(&$icq, &$aim, &$msnm, &$yim, &$website, &$loca
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Reference in New Issue
Block a user