mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00: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
1 changed files with 2 additions and 1 deletions
|
@ -162,8 +162,9 @@ if ( $row = $db->sql_fetchrow($result) )
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
$ban_ip = str_replace('255', '256', decode_ip($row['ban_ip']));
|
||||||
$sql_update[] = "UPDATE " . BANLIST_TABLE . "
|
$sql_update[] = "UPDATE " . BANLIST_TABLE . "
|
||||||
SET ban_ip = '" . decode_ip($row['ban_ip']) . "'
|
SET ban_ip = '$ban_ip'
|
||||||
WHERE ban_id = " . $row['ban_id'];
|
WHERE ban_id = " . $row['ban_id'];
|
||||||
}
|
}
|
||||||
while ( $row = $db->sql_fetchrow($result) );
|
while ( $row = $db->sql_fetchrow($result) );
|
||||||
|
|
Loading…
Add table
Reference in a new issue