mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 14:30:32 +02:00
Wildcard username ban in email banning
git-svn-id: file:///svn/phpbb/trunk@791 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -330,7 +330,8 @@ if(isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode']))
|
||||
$ban_email_list = $db->sql_fetchrowset($result);
|
||||
for($i = 0; $i < count($ban_email_list); $i++)
|
||||
{
|
||||
if( eregi("^" . $ban_email_list[$i]['ban_email'] . "$", $email) )
|
||||
$match_email = str_replace("*@", ".*@", $ban_email_list[$i]['ban_email']);
|
||||
if( eregi("^" . $match_email . "$", $email) )
|
||||
{
|
||||
$error = TRUE;
|
||||
if(isset($error_msg))
|
||||
|
Reference in New Issue
Block a user