* Using wfMsgHtml() for safe html output
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 2 Aug 2005 13:09:08 +0000 (13:09 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Tue, 2 Aug 2005 13:09:08 +0000 (13:09 +0000)
includes/SpecialBooksources.php
includes/SpecialBrokenRedirects.php
includes/SpecialCategories.php
includes/SpecialSpecialpages.php

index d582ed8..115a9a6 100644 (file)
@@ -64,7 +64,7 @@ class BookSourceList {
                }
                
                # Otherwise, use the list of links in the default Language.php file.
-               $s = wfMsg( "booksourcetext" ) . "<ul>\n";
+               $s = wfMsgHtml( "booksourcetext" ) . "<ul>\n";
                $bs = $wgContLang->getBookstoreList() ;
                $bsn = array_keys ( $bs ) ;
                foreach ( $bsn as $name ) {
index 4101120..0720659 100644 (file)
@@ -26,7 +26,7 @@ class BrokenRedirectsPage extends PageQueryPage {
        function isSyndicated() { return false; }
 
        function getPageHeader( ) {
-               return '<p>'.wfMsg('brokenredirectstext')."</p><br />\n";
+               return '<p>'.wfMsgHtml('brokenredirectstext')."</p><br />\n";
        }
 
        function getSQL() {
index 977484b..b5ca328 100644 (file)
@@ -28,7 +28,7 @@ class CategoriesPage extends QueryPage {
        function isSyndicated() { return false; }
 
        function getPageHeader() {
-               return '<p>'.wfMsg('categoriespagetext')."</p><br />\n";
+               return '<p>'.wfMsgHtml('categoriespagetext')."</p><br />\n";
        }
        function getSQL() {
                $NScat = NS_CATEGORY;
index 265af2f..7fc0c1b 100644 (file)
@@ -62,7 +62,7 @@ function wfSpecialSpecialpages_gen($pages,$heading,$sk) {
        }
 
        /** Now output the HTML */
-       $wgOut->addHTML( '<h2>' . wfMsg( $heading ) . "</h2>\n<ul>" );
+       $wgOut->addHTML( '<h2>' . wfMsgHtml( $heading ) . "</h2>\n<ul>" );
        foreach ( $sortedPages as $desc => $title ) {
                $link = $sk->makeKnownLinkObj( $title, $desc );
                $wgOut->addHTML( "<li>{$link}</li>\n" );