mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-03 07:18:08 +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:
@@ -153,7 +153,7 @@ if( isset($HTTP_POST_VARS['submit']) )
|
|||||||
// contained in the annotated php manual at php.com (ereg
|
// contained in the annotated php manual at php.com (ereg
|
||||||
// section)
|
// section)
|
||||||
//
|
//
|
||||||
if( eregi("^(([[:alnum:]]+([-_.][[:alnum:]]+)*\.?)|(\*))@([[:alnum:]]+([-_]?[[:alnum:]]+)*\.){1,3}([[:alnum:]]{2,6})$", trim($email_list_temp[$i])) )
|
if( eregi("^(([[:alnum:]\*]+([-_.][[:alnum:]\*]+)*\.?)|(\*))@([[:alnum:]]+([-_]?[[:alnum:]]+)*\.){1,3}([[:alnum:]]{2,6})$", trim($email_list_temp[$i])) )
|
||||||
{
|
{
|
||||||
$email_list[] = trim($email_list_temp[$i]);
|
$email_list[] = trim($email_list_temp[$i]);
|
||||||
}
|
}
|
||||||
|
@@ -113,7 +113,7 @@ function validate_email($email)
|
|||||||
{
|
{
|
||||||
while( $row = $db->sql_fetchrow($result) )
|
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) )
|
if ( preg_match('/^' . $match_email . '$/is', $email) )
|
||||||
{
|
{
|
||||||
return array('error' => true, 'error_msg' => $lang['Email_banned']);
|
return array('error' => true, 'error_msg' => $lang['Email_banned']);
|
||||||
|
Reference in New Issue
Block a user