From: Aaron Schulz Date: Thu, 9 Oct 2008 20:37:40 +0000 (+0000) Subject: Fix ipv6 block searches X-Git-Tag: 1.31.0-rc.0~44829 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=8655b8cdad59e8869f299b822f319f15368319a2;p=lhc%2Fweb%2Fwiklou.git Fix ipv6 block searches --- diff --git a/includes/specials/SpecialIpblocklist.php b/includes/specials/SpecialIpblocklist.php index 242b6cc37d..9ff59b467d 100644 --- a/includes/specials/SpecialIpblocklist.php +++ b/includes/specials/SpecialIpblocklist.php @@ -246,7 +246,7 @@ class IPUnblockForm { } elseif ( substr( $this->ip, 0, 1 ) == '#' ) { $conds['ipb_id'] = substr( $this->ip, 1 ); } elseif ( IP::toUnsigned( $this->ip ) !== false ) { - $conds['ipb_address'] = $this->ip; + $conds['ipb_address'] = IP::sanitizeIP($this->ip); $conds['ipb_auto'] = 0; } elseif( preg_match( '/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\\/(\\d{1,2})$/', $this->ip, $matches ) ) { $conds['ipb_address'] = Block::normaliseRange( $this->ip );