From f2503ff12c5b65a050ffa117b4fbbc8e0bd5e73a Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Wed, 4 Jan 2012 10:35:11 +0000 Subject: [PATCH] JSTesting: escape message Replaced call to wfMsg() by wfMsgHtml() just to be safe. Per cr on r107919. --- includes/specials/SpecialJavaScriptTest.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/specials/SpecialJavaScriptTest.php b/includes/specials/SpecialJavaScriptTest.php index c9719497e2..f82968d4a7 100644 --- a/includes/specials/SpecialJavaScriptTest.php +++ b/includes/specials/SpecialJavaScriptTest.php @@ -37,16 +37,16 @@ class SpecialJavaScriptTest extends SpecialPage { // No framework specified if ( $par == '' ) { - $out->setPagetitle( wfMsg( 'javascripttest' ) ); + $out->setPagetitle( wfMsgHtml( 'javascripttest' ) ); $summary = $this->wrapSummaryHtml( - wfMsg( 'javascripttest-pagetext-noframework' ) . $this->getFrameworkListHtml(), + wfMsgHtml( 'javascripttest-pagetext-noframework' ) . $this->getFrameworkListHtml(), 'noframework' ); $out->addHtml( $summary ); // Matched! Display proper title and initialize the framework } elseif ( isset( self::$frameworks[$framework] ) ) { - $out->setPagetitle( wfMsg( 'javascripttest-title', wfMsg( "javascripttest-$framework-name" ) ) ); + $out->setPagetitle( wfMsgHtml( 'javascripttest-title', wfMsgHtml( "javascripttest-$framework-name" ) ) ); $out->setSubtitle( wfMessage( 'javascripttest-backlink' )->rawParams( Linker::linkKnown( $this->getTitle() ) )->escaped() ); @@ -54,9 +54,9 @@ class SpecialJavaScriptTest extends SpecialPage { // Framework not found, display error } else { - $out->setPagetitle( wfMsg( 'javascripttest' ) ); + $out->setPagetitle( wfMsgHtml( 'javascripttest' ) ); $summary = $this->wrapSummaryHtml( '

' - . wfMsg( 'javascripttest-pagetext-unknownframework', $par ) + . wfMsgHtml( 'javascripttest-pagetext-unknownframework', $par ) . '

' . $this->getFrameworkListHtml(), 'unknownframework' @@ -75,7 +75,7 @@ class SpecialJavaScriptTest extends SpecialPage { $list .= Html::rawElement( 'li', array(), - Linker::link( $this->getTitle( $framework ), wfMsg( "javascripttest-$framework-name" ) ) + Linker::link( $this->getTitle( $framework ), wfMsgHtml( "javascripttest-$framework-name" ) ) ); } $list .= ''; -- 2.20.1