https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113819
Revision: 113819
Author: maxsem
Date: 2012-03-14 16:31:52 +0000 (Wed, 14 Mar 2012)
Log Message:
-----------
* (bug 34889) User name should be normalized on Special:Contributions. Fixes
regression from r103751.
Modified Paths:
--------------
trunk/phase3/RELEASE-NOTES-1.19
trunk/phase3/includes/specials/SpecialContributions.php
Modified: trunk/phase3/RELEASE-NOTES-1.19
===================================================================
--- trunk/phase3/RELEASE-NOTES-1.19 2012-03-14 16:30:59 UTC (rev 113818)
+++ trunk/phase3/RELEASE-NOTES-1.19 2012-03-14 16:31:52 UTC (rev 113819)
@@ -19,6 +19,7 @@
* (bug 34887) $3 and $4 parameters are now substituted correctly in message
"movepage-moved"
* (bug 34841) Edit links are no longer displayed when display old page versions
+* (bug 34889) User name should be normalized on Special:Contributions
=== Configuration changes in 1.19 ===
* Removed SkinTemplateSetupPageCss hook; use BeforePageDisplay instead.
Modified: trunk/phase3/includes/specials/SpecialContributions.php
===================================================================
--- trunk/phase3/includes/specials/SpecialContributions.php 2012-03-14
16:30:59 UTC (rev 113818)
+++ trunk/phase3/includes/specials/SpecialContributions.php 2012-03-14
16:31:52 UTC (rev 113819)
@@ -71,12 +71,16 @@
$this->opts['target'] = $target;
$this->opts['topOnly'] = $request->getBool( 'topOnly' );
- $userObj = User::newFromName( $target, false );
+ $nt = Title::makeTitleSafe( NS_USER, $target );
+ if ( !$nt ) {
+ $out->addHTML( $this->getForm() );
+ return;
+ }
+ $userObj = User::newFromName( $nt->getText(), false );
if ( !$userObj ) {
$out->addHTML( $this->getForm() );
return;
}
- $nt = $userObj->getUserPage();
$id = $userObj->getID();
if ( $this->opts['contribs'] != 'newbie' ) {
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs