minor usability enhancement
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 20 Sep 2003 10:00:13 +0000 (10:00 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 20 Sep 2003 10:00:13 +0000 (10:00 +0000)
includes/SpecialBlockip.php
includes/SpecialIpblocklist.php

index fe52461..4489141 100644 (file)
@@ -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 ) ) 
                {
index 37c4974..2b9d216 100644 (file)
@@ -64,7 +64,8 @@ class IPUnblockForm {
                global $wpUnblockAddress;
 
                $block = new Block();
-               
+               $wpUnblockAddress = trim( $wpUnblockAddress );
+
                if ( $wpUnblockAddress{0} == "#" ) {
                        $block->mId = substr( $wpUnblockAddress, 1 );
                } else {