From b34ac08369435c59b0b3195619e2c0505a56cf5c Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Mon, 20 Aug 2012 16:54:11 +0200 Subject: [PATCH] Fix double escaping of fieldset's legend in HTMLForm. The message is fetched using Message::escaped() but is later passed to Xml::element() (from Xml::fieldset() call HTMLForm::wrapForm()) which means it is double escaped. Change-Id: I7154b3b26cc46759c184bdf9059d82470e2ab836 --- includes/HTMLForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/HTMLForm.php b/includes/HTMLForm.php index db29436370..ab12377866 100644 --- a/includes/HTMLForm.php +++ b/includes/HTMLForm.php @@ -873,7 +873,7 @@ class HTMLForm extends ContextSource { * @return HTMLForm $this for chaining calls (since 1.20) */ public function setWrapperLegendMsg( $msg ) { - $this->setWrapperLegend( $this->msg( $msg )->escaped() ); + $this->setWrapperLegend( $this->msg( $msg )->text() ); return $this; } -- 2.20.1