Index: trunk/extensions/CheckUser/CheckUser_body.php |
— | — | @@ -1162,8 +1162,8 @@ |
1163 | 1163 | list( $start, $end ) = IP::parseRange( $ip ); |
1164 | 1164 | return array( 'cuc_' . $type . '_hex BETWEEN ' . $db->addQuotes( $start ) . ' AND ' . $db->addQuotes( $end ) ); |
1165 | 1165 | } 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 ) { |
1168 | 1168 | return false; // invalid |
1169 | 1169 | } |
1170 | 1170 | list( $start, $end ) = IP::parseRange( $ip ); |