Index: trunk/extensions/CheckUser/checkuser.js |
— | — | @@ -98,7 +98,8 @@ |
99 | 99 | // Convert the IP to binary form: IPv6 |
100 | 100 | } else if( ipV6 ) { |
101 | 101 | var ip = ipV6[2]; |
102 | | - var cidr = ipV6[0].match( /\/\d+$/ )[0]; |
| 102 | + var cidr = ipV6[0].match( /\/\d+$/ ); |
| 103 | + cidr = cidr ? cidr[0] : false; |
103 | 104 | var abbrevs = ip.match( /::/g ); |
104 | 105 | if( abbrevs && abbrevs.length > 1 ) continue; // bad IP! |
105 | 106 | // Expand out "::"s |