Fix double escaping of fieldset's legend in HTMLForm.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 20 Aug 2012 14:54:11 +0000 (16:54 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 20 Aug 2012 14:54:11 +0000 (16:54 +0200)
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

index db29436..ab12377 100644 (file)
@@ -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;
        }