From cdb30ef5844769e74ac3df9c747c6d06d47eb8a5 Mon Sep 17 00:00:00 2001 From: Victor Vasiliev Date: Sat, 22 Dec 2007 15:13:25 +0000 Subject: [PATCH] * (bug 12380) Bot-friendly EditPage::spamPage --- RELEASE-NOTES | 2 +- includes/EditPage.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 76654daaff..cd5e33fb99 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -261,7 +261,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 12346) XML fix when body double-click and click handlers are present * Fix regression -- missing feed links in sidebar on Special:Recentchanges * (bug 12371) Handle more namespace case variants in namespaceDupes.php - +* (bug 12380) Bot-friendly EditPage::spamPage == Parser changes in 1.12 == diff --git a/includes/EditPage.php b/includes/EditPage.php index ba0482e945..a3905982e0 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1592,9 +1592,11 @@ END $wgOut->setRobotPolicy( 'noindex,nofollow' ); $wgOut->setArticleRelated( false ); + $wgOut->addHtml( '
' ); $wgOut->addWikiText( wfMsg( 'spamprotectiontext' ) ); if ( $match ) - $wgOut->addWikiText( wfMsg( 'spamprotectionmatch', "{$match}" ) ); + $wgOut->addWikiText( wfMsg( 'spamprotectionmatch',wfEscapeWikiText( $match ) ) ); + $wgOut->addHtml( '
' ); $wgOut->returnToMain( false, $wgTitle ); } -- 2.20.1