aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/profile.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-08-02 01:02:10 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-08-02 01:02:10 +0000
commit1d2382ccc08d663a6866183034ccf98cdb5ea4da (patch)
treebe026c832b89b161dd2514b61cf8884b2ec4f1a1 /phpBB/profile.php
parent1001c866518dec693c1e08296febc318e982ae80 (diff)
downloadforums-1d2382ccc08d663a6866183034ccf98cdb5ea4da.tar
forums-1d2382ccc08d663a6866183034ccf98cdb5ea4da.tar.gz
forums-1d2382ccc08d663a6866183034ccf98cdb5ea4da.tar.bz2
forums-1d2382ccc08d663a6866183034ccf98cdb5ea4da.tar.xz
forums-1d2382ccc08d663a6866183034ccf98cdb5ea4da.zip
Wildcard username ban in email banning
git-svn-id: file:///svn/phpbb/trunk@791 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/profile.php')
-rw-r--r--phpBB/profile.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/profile.php b/phpBB/profile.php
index eeba6a7221..882848ae50 100644
--- a/phpBB/profile.php
+++ b/phpBB/profile.php
@@ -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))