From 3b454333effe44731d4ed5d5f6f37cc868451e06 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Sat, 8 Jul 2006 13:53:50 +0000 Subject: [PATCH] * More escaping --- includes/ProtectionForm.php | 2 +- includes/SpecialSearch.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index 2a40a37680..456cc8f164 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -79,7 +79,7 @@ class ProtectionForm { $wgOut->addWikiText( wfMsg( $this->disabled ? "protect-viewtext" : "protect-text", - $this->mTitle->getPrefixedText() ) ); + wfEscapeWikiText( $this->mTitle->getPrefixedText() ) ) ); $wgOut->addHTML( $this->buildForm() ); diff --git a/includes/SpecialSearch.php b/includes/SpecialSearch.php index 4db27e87e7..c4669854d6 100644 --- a/includes/SpecialSearch.php +++ b/includes/SpecialSearch.php @@ -110,7 +110,7 @@ class SpecialSearch { $editurl = $t->escapeLocalURL( 'action=edit' ); } } - $wgOut->addWikiText( wfMsg( 'noexactmatch', $term ) ); + $wgOut->addWikiText( wfMsg( 'noexactmatch', wfEscapeWikiText( $term ) ) ); return $this->showResults( $term ); } -- 2.20.1