bug fix: invalid ranges didn't halt processing
authorTim Starling <tstarling@users.mediawiki.org>
Sun, 14 Mar 2004 02:02:59 +0000 (02:02 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sun, 14 Mar 2004 02:02:59 +0000 (02:02 +0000)
includes/SpecialBlockip.php

index ffc9025..cbf6c33 100644 (file)
@@ -91,6 +91,7 @@ class IPBlockForm {
                                if ( $wgSysopRangeBans ) {
                                        if ( $matches[2] > 31 || $matches[2] < 16 ) {
                                                $this->showForm( wfMsg( "ip_range_invalid" ) );
+                                               return;
                                        }
                                        $this->BlockAddress = Block::normaliseRange( $this->BlockAddress );
                                } else {