From 0f266432891ce57e335fb87bf00324178960aac8 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 22 Feb 2004 04:45:25 +0000 Subject: [PATCH] no blocks larger than /16 --- includes/SpecialBlockip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index a82a2fb628..67348763f5 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -87,7 +87,7 @@ class IPBlockForm { if ( ! preg_match( "/^$rxIP$/", $wpBlockAddress ) ) { if ( preg_match( "/^($rxIP)\\/(\\d{1,2})$/", $wpBlockAddress, $matches ) ) { if ( $wgSysopRangeBans ) { - if ( $matches[2] > 31 || $matches[2] < 1 ) { + if ( $matches[2] > 31 || $matches[2] < 16 ) { $this->showForm( wfMsg( "ip_range_invalid" ) ); } $wpBlockAddress = Block::normaliseRange( $wpBlockAddress ); -- 2.20.1