Index: trunk/phase3/includes/SpecialBlockip.php |
— | — | @@ -191,6 +191,8 @@ |
192 | 192 | $this->showLogFragment( $wgOut, $user->getUserPage() ); |
193 | 193 | } elseif( preg_match( '/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/', $this->BlockAddress ) ) { |
194 | 194 | $this->showLogFragment( $wgOut, Title::makeTitle( NS_USER, $this->BlockAddress ) ); |
| 195 | + } elseif( preg_match( '/^\w{1,4}:\w{1,4}:\w{1,4}:\w{1,4}:\w{1,4}:\w{1,4}:\w{1,4}:\w{1,4}/', $this->BlockAddress ) ) { |
| 196 | + $this->showLogFragment( $wgOut, Title::makeTitle( NS_USER, $this->BlockAddress ) ); |
195 | 197 | } |
196 | 198 | } |
197 | 199 | |
— | — | @@ -198,7 +200,6 @@ |
199 | 201 | global $wgOut, $wgUser, $wgSysopUserBans, $wgSysopRangeBans; |
200 | 202 | |
201 | 203 | $userId = 0; |
202 | | - $this->BlockAddress = trim( $this->BlockAddress ); |
203 | 204 | # Expand valid IPv6 addresses, usernames are left as is |
204 | 205 | $this->BlockAddress = IP::sanitizeIP( $this->BlockAddress ); |
205 | 206 | # isIPv4() and IPv6() are used for final validation |