aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_validate.php
diff options
context:
space:
mode:
authorthe_systech <the_systech@users.sourceforge.net>2002-03-18 19:42:05 +0000
committerthe_systech <the_systech@users.sourceforge.net>2002-03-18 19:42:05 +0000
commit315f0e4d3aa1cebabfa41de02c4f6b2c6af9c143 (patch)
tree7423cdd3d20612633b467abf8c084dc07e4388cd /phpBB/includes/functions_validate.php
parent506be5f874e5bbd0ddcab9b286f07779033c235d (diff)
downloadforums-315f0e4d3aa1cebabfa41de02c4f6b2c6af9c143.tar
forums-315f0e4d3aa1cebabfa41de02c4f6b2c6af9c143.tar.gz
forums-315f0e4d3aa1cebabfa41de02c4f6b2c6af9c143.tar.bz2
forums-315f0e4d3aa1cebabfa41de02c4f6b2c6af9c143.tar.xz
forums-315f0e4d3aa1cebabfa41de02c4f6b2c6af9c143.zip
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
Diffstat (limited to 'phpBB/includes/functions_validate.php')
-rw-r--r--phpBB/includes/functions_validate.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_validate.php b/phpBB/includes/functions_validate.php
index 67d585dbf4..c6f11bf87a 100644
--- a/phpBB/includes/functions_validate.php
+++ b/phpBB/includes/functions_validate.php
@@ -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;
}
-?> \ No newline at end of file
+?>