From 8bdd53ee0538921c11105f79515a0014f1bfc9aa Mon Sep 17 00:00:00 2001 From: Jeroen De Dauw Date: Mon, 30 Jan 2012 12:24:24 +0000 Subject: [PATCH] fix xss --- includes/Action.php | 2 +- includes/actions/CreditsAction.php | 2 +- includes/actions/WatchAction.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Action.php b/includes/Action.php index 2dcdf78ec9..a5bcb053bd 100644 --- a/includes/Action.php +++ b/includes/Action.php @@ -328,7 +328,7 @@ abstract class Action { * @return String */ protected function getDescription() { - return wfMsg( strtolower( $this->getName() ) ); + return wfMsgHtml( strtolower( $this->getName() ) ); } /** diff --git a/includes/actions/CreditsAction.php b/includes/actions/CreditsAction.php index 3b2f77eb2e..1072d253f0 100644 --- a/includes/actions/CreditsAction.php +++ b/includes/actions/CreditsAction.php @@ -30,7 +30,7 @@ class CreditsAction extends FormlessAction { } protected function getDescription() { - return wfMsg( 'creditspage' ); + return wfMsgHtml( 'creditspage' ); } /** diff --git a/includes/actions/WatchAction.php b/includes/actions/WatchAction.php index 5cd2ce7d9e..e8ae3b6e86 100644 --- a/includes/actions/WatchAction.php +++ b/includes/actions/WatchAction.php @@ -31,7 +31,7 @@ class WatchAction extends FormAction { } protected function getDescription() { - return wfMsg( 'addwatch' ); + return wfMsgHtml( 'addwatch' ); } /** -- 2.20.1