From: Rotem Liss Date: Sun, 9 Dec 2007 10:03:42 +0000 (+0000) Subject: Escape page names in the move successful page (e.g. for pages with two apostrophes). X-Git-Tag: 1.31.0-rc.0~50480 X-Git-Url: https://git.cyclocoop.org/?a=commitdiff_plain;h=b397dfa18b0bf521607d68a8d78792e833b0926e;p=lhc%2Fweb%2Fwiklou.git Escape page names in the move successful page (e.g. for pages with two apostrophes). --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 61dd6ae2a4..5700d66e6f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index 148923f9cc..ae88a09b19 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -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 = "[$oldUrl $oldText]"; $newLink = "[$newUrl $newText]";