Index: trunk/extensions/CheckUser/checkuser.js |
— | — | @@ -51,7 +51,8 @@ |
52 | 52 | // Get largest common bin_prefix |
53 | 53 | } else { |
54 | 54 | for( x=0; x<bin_prefix.length; x++ ) { |
55 | | - if( bin_prefix[x] != bin[x] ) { |
| 55 | + // Bin_prefix always smaller than bin unless a CIDR was used on bin |
| 56 | + if( bin[x] == undefined || bin_prefix[x] != bin[x] ) { |
56 | 57 | bin_prefix = bin_prefix.substring(0,x); // shorten bin_prefix |
57 | 58 | break; |
58 | 59 | } |