Escape page names in the move successful page (e.g. for pages with two apostrophes).
authorRotem Liss <rotem@users.mediawiki.org>
Sun, 9 Dec 2007 10:03:42 +0000 (10:03 +0000)
committerRotem Liss <rotem@users.mediawiki.org>
Sun, 9 Dec 2007 10:03:42 +0000 (10:03 +0000)
RELEASE-NOTES
includes/SpecialMovepage.php

index 61dd6ae..5700d66 100644 (file)
@@ -229,6 +229,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   lines in diff output
 * (bug 10166) Fix a PHP warning in Language::getMagic
 * Only mark rollback edits as minor if the user can normally mark edits as minor.
+* Escape page names in the move successful page (e.g. for pages with two
+  apostrophes).
 
 == Parser changes in 1.12 ==
 
index 148923f..ae88a09 100644 (file)
@@ -293,8 +293,8 @@ class MovePageForm {
                $talkmoved = $wgRequest->getVal( 'talkmoved' );
                $oldUrl = $old->getFullUrl( 'redirect=no' );
                $newUrl = $new->getFullURl();
-               $oldText = $old->getPrefixedText();
-               $newText = $new->getPrefixedText();
+               $oldText = wfEscapeWikiText( $old->getPrefixedText() );
+               $newText = wfEscapeWikiText( $new->getPrefixedText() );
                $oldLink = "<span class='plainlinks'>[$oldUrl $oldText]</span>";
                $newLink = "<span class='plainlinks'>[$newUrl $newText]</span>";