diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-05-09 14:13:45 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-05-09 14:13:45 +0000 |
| commit | 46bd19817c822fb9e29d8dd0c78850e2ada293fe (patch) | |
| tree | 9bd447fddc889b176b700bcb0c6163b07e0a0ce3 /phpBB/update_script.php | |
| parent | f6c6628509a3d055f9736df248693f61d5c5b701 (diff) | |
| download | forums-46bd19817c822fb9e29d8dd0c78850e2ada293fe.tar forums-46bd19817c822fb9e29d8dd0c78850e2ada293fe.tar.gz forums-46bd19817c822fb9e29d8dd0c78850e2ada293fe.tar.bz2 forums-46bd19817c822fb9e29d8dd0c78850e2ada293fe.tar.xz forums-46bd19817c822fb9e29d8dd0c78850e2ada293fe.zip | |
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
Diffstat (limited to 'phpBB/update_script.php')
| -rw-r--r-- | phpBB/update_script.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/update_script.php b/phpBB/update_script.php index 01ad6ffcd9..c99cf7685b 100644 --- a/phpBB/update_script.php +++ b/phpBB/update_script.php @@ -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) ); |
