1
0
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:
Paul S. Owen 2002-05-09 14:13:45 +00:00
parent f6c6628509
commit 46bd19817c

View File

@ -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) );