mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 22:40:39 +02:00
- some other random things git-svn-id: file:///svn/phpbb/trunk@6880 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -767,6 +767,11 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas
|
||||
{
|
||||
if ($ip)
|
||||
{
|
||||
if (strlen($ip) > 40)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$banlist_ary[] = $ip;
|
||||
}
|
||||
}
|
||||
@@ -788,6 +793,11 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas
|
||||
|
||||
if (preg_match('#^.*?@*|(([a-z0-9\-]+\.)+([a-z]{2,3}))$#i', $ban_item))
|
||||
{
|
||||
if (strlen($ban_item) > 100)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!sizeof($founder) || !in_array($ban_item, $founder))
|
||||
{
|
||||
$banlist_ary[] = $ban_item;
|
||||
|
Reference in New Issue
Block a user