From 143623d590ac32e885b81d795547779680dd50f9 Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Fri, 21 Sep 2012 15:30:28 -0700 Subject: [PATCH] Document that setSubtitle() and addSubtitle() need safe HTML Change-Id: Id5431fc20fb9e9cc755e6a3c393146888a5b666e --- includes/OutputPage.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 2c32c6abe0..b69069b02f 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -851,11 +851,10 @@ class OutputPage extends ContextSource { $this->getContext()->setTitle( $t ); } - /** * Replace the subtile with $str * - * @param $str String|Message: new value of the subtitle + * @param $str String|Message: new value of the subtitle. String should be safe HTML. */ public function setSubtitle( $str ) { $this->clearSubtitle(); @@ -875,7 +874,7 @@ class OutputPage extends ContextSource { /** * Add $str to the subtitle * - * @param $str String|Message to add to the subtitle + * @param $str String|Message to add to the subtitle. String should be safe HTML. */ public function addSubtitle( $str ) { if ( $str instanceof Message ) { -- 2.20.1