r77097 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77096‎ | r77097 | r77098 >
Date:05:07, 22 November 2010
Author:aaron
Status:ok
Tags:
Comment:
Increased largest ipv6 prefix to /64
Modified paths:
  • /trunk/extensions/CheckUser/CheckUser_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/CheckUser_body.php
@@ -1162,8 +1162,8 @@
11631163 list( $start, $end ) = IP::parseRange( $ip );
11641164 return array( 'cuc_' . $type . '_hex BETWEEN ' . $db->addQuotes( $start ) . ' AND ' . $db->addQuotes( $end ) );
11651165 } elseif ( preg_match( '#^\w{1,4}:\w{1,4}:\w{1,4}:\w{1,4}:\w{1,4}:\w{1,4}:\w{1,4}:\w{1,4}/(\d+)$#', $ip, $matches ) ) {
1166 - // IPv6 CIDR, 96-128 bits
1167 - if ( $matches[1] < 96 || $matches[1] > 128 ) {
 1166+ // IPv6 CIDR, 64-128 bits
 1167+ if ( $matches[1] < 64 || $matches[1] > 128 ) {
11681168 return false; // invalid
11691169 }
11701170 list( $start, $end ) = IP::parseRange( $ip );

Status & tagging log