r47240 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47239‎ | r47240 | r47241 >
Date:23:47, 13 February 2009
Author:aaron
Status:deferred
Tags:
Comment:
64 -> 96
Modified paths:
  • /trunk/extensions/CheckUser/checkuser.js (modified) (history)

Diff [purge]

Index: trunk/extensions/CheckUser/checkuser.js
@@ -104,7 +104,7 @@
105105 // Apply any valid CIDRs
106106 if( cidr ) {
107107 cidr = cidr.match( /\d+$/ )[0]; // get rid of slash
108 - if( cidr >= 64 ) bin = bin.substring(0,cidr); // truncate bin
 108+ if( cidr >= 96 ) bin = bin.substring(0,cidr); // truncate bin
109109 }
110110 // Init bin_prefix
111111 if( bin_prefix === 0 ) {
@@ -122,7 +122,7 @@
123123 // Build the IP in CIDR form
124124 var prefix_cidr = bin_prefix.length;
125125 // CIDR too small?
126 - if( prefix_cidr < 64 ) {
 126+ if( prefix_cidr < 96 ) {
127127 document.getElementById( 'mw-checkuser-cidr-res' ).value = "!";
128128 document.getElementById( 'mw-checkuser-ipnote' ).innerHTML = '';
129129 return; // too big

Status & tagging log