From e2e449a05688488601f060f2329079531e7158a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sat, 8 Jul 2006 15:36:12 +0000 Subject: [PATCH] * And more escaping --- includes/Article.php | 2 +- includes/SpecialMovepage.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index 9aed6f4390..1a66758397 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -1842,7 +1842,7 @@ class Article { if (wfRunHooks('ArticleDelete', array(&$this, &$wgUser, &$reason))) { if ( $this->doDeleteArticle( $reason ) ) { - $deleted = $this->mTitle->getPrefixedText(); + $deleted = wfEscapeWikiText( $this->mTitle->getPrefixedText() ); $wgOut->setPagetitle( wfMsg( 'actioncomplete' ) ); $wgOut->setRobotpolicy( 'noindex,nofollow' ); diff --git a/includes/SpecialMovepage.php b/includes/SpecialMovepage.php index 393971295f..086f4d5c70 100644 --- a/includes/SpecialMovepage.php +++ b/includes/SpecialMovepage.php @@ -249,8 +249,8 @@ class MovePageForm { $wgOut->setPagetitle( wfMsg( 'movepage' ) ); $wgOut->setSubtitle( wfMsg( 'pagemovedsub' ) ); - $oldText = $wgRequest->getVal('oldtitle'); - $newText = $wgRequest->getVal('newtitle'); + $oldText = wfEscapeWikiText( $wgRequest->getVal('oldtitle') ); + $newText = wfEscapeWikiText( $wgRequest->getVal('newtitle') ); $talkmoved = $wgRequest->getVal('talkmoved'); $text = wfMsg( 'pagemovedtext', $oldText, $newText ); -- 2.20.1