mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-01 03:54:56 +02:00
Alter ban_ip's when examining subnets ... this whole thing needs a review for IPv6
git-svn-id: file:///svn/phpbb/trunk@2561 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
f6c6628509
commit
46bd19817c
@ -162,8 +162,9 @@ if ( $row = $db->sql_fetchrow($result) )
|
||||
{
|
||||
do
|
||||
{
|
||||
$ban_ip = str_replace('255', '256', decode_ip($row['ban_ip']));
|
||||
$sql_update[] = "UPDATE " . BANLIST_TABLE . "
|
||||
SET ban_ip = '" . decode_ip($row['ban_ip']) . "'
|
||||
SET ban_ip = '$ban_ip'
|
||||
WHERE ban_id = " . $row['ban_id'];
|
||||
}
|
||||
while ( $row = $db->sql_fetchrow($result) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user