From 41c0bb25388c010e0346829375ca694c7d355148 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Sun, 14 Mar 2004 02:02:59 +0000 Subject: [PATCH] bug fix: invalid ranges didn't halt processing --- includes/SpecialBlockip.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index ffc9025e81..cbf6c33f20 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -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 { -- 2.20.1