From 8655b8cdad59e8869f299b822f319f15368319a2 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 9 Oct 2008 20:37:40 +0000 Subject: [PATCH] Fix ipv6 block searches --- includes/specials/SpecialIpblocklist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1