| Index: trunk/phase3/RELEASE-NOTES-1.19 |
| — | — | @@ -19,6 +19,7 @@ |
| 20 | 20 | * (bug 34887) $3 and $4 parameters are now substituted correctly in message |
| 21 | 21 | "movepage-moved" |
| 22 | 22 | * (bug 34841) Edit links are no longer displayed when display old page versions |
| | 23 | +* (bug 34889) User name should be normalized on Special:Contributions |
| 23 | 24 | |
| 24 | 25 | === Configuration changes in 1.19 === |
| 25 | 26 | * Removed SkinTemplateSetupPageCss hook; use BeforePageDisplay instead. |
| Index: trunk/phase3/includes/specials/SpecialContributions.php |
| — | — | @@ -71,12 +71,16 @@ |
| 72 | 72 | $this->opts['target'] = $target; |
| 73 | 73 | $this->opts['topOnly'] = $request->getBool( 'topOnly' ); |
| 74 | 74 | |
| 75 | | - $userObj = User::newFromName( $target, false ); |
| | 75 | + $nt = Title::makeTitleSafe( NS_USER, $target ); |
| | 76 | + if ( !$nt ) { |
| | 77 | + $out->addHTML( $this->getForm() ); |
| | 78 | + return; |
| | 79 | + } |
| | 80 | + $userObj = User::newFromName( $nt->getText(), false ); |
| 76 | 81 | if ( !$userObj ) { |
| 77 | 82 | $out->addHTML( $this->getForm() ); |
| 78 | 83 | return; |
| 79 | 84 | } |
| 80 | | - $nt = $userObj->getUserPage(); |
| 81 | 85 | $id = $userObj->getID(); |
| 82 | 86 | |
| 83 | 87 | if ( $this->opts['contribs'] != 'newbie' ) { |