Index: trunk/phase3/includes/specials/SpecialIpblocklist.php |
— | — | @@ -246,7 +246,7 @@ |
247 | 247 | } elseif ( substr( $this->ip, 0, 1 ) == '#' ) { |
248 | 248 | $conds['ipb_id'] = substr( $this->ip, 1 ); |
249 | 249 | } elseif ( IP::toUnsigned( $this->ip ) !== false ) { |
250 | | - $conds['ipb_address'] = $this->ip; |
| 250 | + $conds['ipb_address'] = IP::sanitizeIP($this->ip); |
251 | 251 | $conds['ipb_auto'] = 0; |
252 | 252 | } elseif( preg_match( '/^(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})\\/(\\d{1,2})$/', $this->ip, $matches ) ) { |
253 | 253 | $conds['ipb_address'] = Block::normaliseRange( $this->ip ); |