no blocks larger than /16
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 22 Feb 2004 04:45:25 +0000 (04:45 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 22 Feb 2004 04:45:25 +0000 (04:45 +0000)
includes/SpecialBlockip.php

index a82a2fb..6734876 100644 (file)
@@ -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 );