From 41efbbbe0245720702271c811c19ebb462affc50 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 11 Jul 2006 20:31:06 +0000 Subject: [PATCH] * Fix regression in blocking of user accounts --- RELEASE-NOTES | 1 + includes/SpecialBlockip.php | 1 + 2 files changed, 2 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index c65edd2368..8f50cf9b01 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -54,6 +54,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 6592) Add most viewed pages summary to Special:Statistics * Pre-strip characters ignored in IDNs from URLs so they can't be used to break the blacklists for regular URLs +* Fix regression in blocking of user accounts == Languages updated == diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index 943d1d0a13..de242d1e7e 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -193,6 +193,7 @@ class IPBlockForm { if( !is_null( $user ) && $user->getID() ) { # Use canonical name $this->BlockAddress = $user->getName(); + $userId = $user->getID(); } else { $this->showForm( wfMsg( 'nosuchusershort', htmlspecialchars( $this->BlockAddress ) ) ); return; -- 2.20.1