From: Tim Starling Date: Sat, 20 Sep 2003 10:00:13 +0000 (+0000) Subject: minor usability enhancement X-Git-Tag: 1.1.0~250 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=7e87e13715d78bbf6e2f953fc511e80978f631f9;p=lhc%2Fweb%2Fwiklou.git minor usability enhancement --- diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index fe52461bd8..448914173c 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -62,6 +62,8 @@ class IPBlockForm { global $ip, $wpBlockAddress, $wpBlockReason, $wgSysopUserBans; $userId = 0; + $wpBlockAddress = trim( $wpBlockAddress ); + if ( ! preg_match( "/^\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}$/", $wpBlockAddress ) ) { diff --git a/includes/SpecialIpblocklist.php b/includes/SpecialIpblocklist.php index 37c4974140..2b9d216de5 100644 --- a/includes/SpecialIpblocklist.php +++ b/includes/SpecialIpblocklist.php @@ -64,7 +64,8 @@ class IPUnblockForm { global $wpUnblockAddress; $block = new Block(); - + $wpUnblockAddress = trim( $wpUnblockAddress ); + if ( $wpUnblockAddress{0} == "#" ) { $block->mId = substr( $wpUnblockAddress, 1 ); } else {