From: Tim Starling Date: Sun, 14 Mar 2004 02:02:59 +0000 (+0000) Subject: bug fix: invalid ranges didn't halt processing X-Git-Tag: 1.3.0beta1~800 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%7B%7B%20url_for%28%27vote%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=commitdiff_plain;h=41c0bb25388c010e0346829375ca694c7d355148;p=lhc%2Fweb%2Fwiklou.git bug fix: invalid ranges didn't halt processing --- 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 {