Oops, escape the output too. Thanks to Nikerabbit :)
authorRaimond Spekking <raymond@users.mediawiki.org>
Fri, 14 Mar 2008 08:49:41 +0000 (08:49 +0000)
committerRaimond Spekking <raymond@users.mediawiki.org>
Fri, 14 Mar 2008 08:49:41 +0000 (08:49 +0000)
includes/SpecialSearch.php

index f040c07..e20d838 100644 (file)
@@ -360,7 +360,7 @@ class SpecialSearch {
                }
                
                $text = $revision->getText();
-               $size = wfMsgExt( 'search-result-size', array( 'parsemag' ),
+               $size = wfMsgExt( 'search-result-size', array( 'parsemag', 'escape' ),
                        $sk->formatSize( strlen( $text ) ),
                        str_word_count( $text ) );
                $date = $wgLang->timeanddate( $revision->getTimestamp() );
@@ -517,5 +517,3 @@ class SpecialSearch {
                return $out;
        }
 }
-
-