Index: trunk/phase3/includes/SpecialMovepage.php |
— | — | @@ -268,11 +268,16 @@ |
269 | 269 | function showSuccess() { |
270 | 270 | global $wgOut, $wgRequest, $wgUser, $wgRawHtml; |
271 | 271 | |
| 272 | + $old = Title::newFromText( $wgRequest->getVal( 'oldtitle' ) ); |
| 273 | + $new = Title::newFromText( $wgRequest->getVal( 'newtitle' ) ); |
| 274 | + |
| 275 | + if( is_null( $old ) || is_null( $new ) ) { |
| 276 | + throw new ErrorPageError( 'badtitle', 'badtitletext' ); |
| 277 | + } |
| 278 | + |
272 | 279 | $wgOut->setPagetitle( wfMsg( 'movepage' ) ); |
273 | 280 | $wgOut->setSubtitle( wfMsg( 'pagemovedsub' ) ); |
274 | 281 | |
275 | | - $old = Title::newFromText( $wgRequest->getText( 'oldtitle' ) ); |
276 | | - $new = Title::newFromText( $wgRequest->getText( 'newtitle' ) ); |
277 | 282 | $talkmoved = $wgRequest->getVal( 'talkmoved' ); |
278 | 283 | $oldUrl = $old->getFullUrl( 'redirect=no' ); |
279 | 284 | $newUrl = $new->getFullURl(); |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -279,6 +279,8 @@ |
280 | 280 | * (bug 10332) Title->userCan( 'edit' ) may return false positive |
281 | 281 | * Fix bug with <nowiki> in front of links for wikis where linkPrefixExtension is true |
282 | 282 | * (bug 10552) Suppress rollback link in history for single-revision pages |
| 283 | +* (bug 10538) Gracefully handle invalid input on move success page |
| 284 | +* Fix for Esperanto double-x-encoding in move success page |
283 | 285 | |
284 | 286 | |
285 | 287 | == API changes since 1.10 == |