diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-08-02 01:02:10 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-08-02 01:02:10 +0000 |
commit | 1d2382ccc08d663a6866183034ccf98cdb5ea4da (patch) | |
tree | be026c832b89b161dd2514b61cf8884b2ec4f1a1 /phpBB/profile.php | |
parent | 1001c866518dec693c1e08296febc318e982ae80 (diff) | |
download | forums-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.php | 3 |
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)) |