r41894 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41893‎ | r41894 | r41895 >
Date:20:37, 9 October 2008
Author:aaron
Status:old
Tags:
Comment:
Fix ipv6 block searches
Modified paths:
  • /trunk/phase3/includes/specials/SpecialIpblocklist.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialIpblocklist.php
@@ -246,7 +246,7 @@
247247 } elseif ( substr( $this->ip, 0, 1 ) == '#' ) {
248248 $conds['ipb_id'] = substr( $this->ip, 1 );
249249 } elseif ( IP::toUnsigned( $this->ip ) !== false ) {
250 - $conds['ipb_address'] = $this->ip;
 250+ $conds['ipb_address'] = IP::sanitizeIP($this->ip);
251251 $conds['ipb_auto'] = 0;
252252 } elseif( preg_match( '/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\\/(\\d{1,2})$/', $this->ip, $matches ) ) {
253253 $conds['ipb_address'] = Block::normaliseRange( $this->ip );

Status & tagging log