From a2e9f24ef92207573fb2c92e408a0b00c8f263e2 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 27 Feb 2008 23:59:21 +0000 Subject: [PATCH] * (bug 13135) Special:Userrights now passes IDs through form submission to allow functionality on not-quite-right usernames --- RELEASE-NOTES | 2 ++ includes/SpecialUserrights.php | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 47b193de50..98588c99ca 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -51,6 +51,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 12723) OpenSearch description name now uses more compact language code to avoid passing the length limit as often, is customizable per site via 'opensearch-desc' message. +* (bug 13135) Special:Userrights now passes IDs through form submission + to allow functionality on not-quite-right usernames === API changes in 1.13 === diff --git a/includes/SpecialUserrights.php b/includes/SpecialUserrights.php index 48fb362801..df3dc26820 100644 --- a/includes/SpecialUserrights.php +++ b/includes/SpecialUserrights.php @@ -333,8 +333,8 @@ class UserrightsPage extends SpecialPage { } $wgOut->addHTML( Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->getTitle()->escapeLocalURL(), 'name' => 'editGroup' ) ) . - Xml::hidden( 'user', $user->getName() ) . - Xml::hidden( 'wpEditToken', $wgUser->editToken( $user->getName() ) ) . + Xml::hidden( 'user', $this->mTarget ) . + Xml::hidden( 'wpEditToken', $wgUser->editToken( $this->mTarget ) ) . Xml::openElement( 'fieldset' ) . Xml::element( 'legend', array(), wfMsg( 'userrights-editusergroup' ) ) . wfMsgExt( 'editinguser', array( 'parse' ), -- 2.20.1