From: Alexandre Emsenhuber Date: Mon, 20 Aug 2012 14:54:11 +0000 (+0200) Subject: Fix double escaping of fieldset's legend in HTMLForm. X-Git-Tag: 1.31.0-rc.0~22670 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=b34ac08369435c59b0b3195619e2c0505a56cf5c;p=lhc%2Fweb%2Fwiklou.git 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 --- 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; }