* More escaping
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 8 Jul 2006 13:53:50 +0000 (13:53 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 8 Jul 2006 13:53:50 +0000 (13:53 +0000)
includes/ProtectionForm.php
includes/SpecialSearch.php

index 2a40a37..456cc8f 100644 (file)
@@ -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() );
 
index 4db27e8..c466985 100644 (file)
@@ -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 );
        }