From: Rob Church Date: Thu, 13 Jul 2006 10:06:24 +0000 (+0000) Subject: As a further precaution, use wfOpenElement() and wfCloseElement() X-Git-Tag: 1.31.0-rc.0~56270 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=d2260cc8d39a2c648fa613d8447095209ba1f159;p=lhc%2Fweb%2Fwiklou.git As a further precaution, use wfOpenElement() and wfCloseElement() --- diff --git a/includes/EditPage.php b/includes/EditPage.php index f41e85cc95..c795140c5c 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1429,7 +1429,7 @@ END $attribs = array( 'id' => 'wpTextbox1', 'name' => 'wpTextbox1', 'cols' => $cols, 'rows' => $rows, 'readonly' => 'readonly' ); $wgOut->addHtml( '
' ); $wgOut->addWikiText( wfMsg( $first ? 'blockedoriginalsource' : 'blockededitsource', $this->mTitle->getPrefixedText() ) ); - $wgOut->addHtml( wfElement( 'textarea', $attribs, $source ) ); + $wgOut->addHtml( wfOpenElement( 'textarea', $attribs ) . htmlspecialchars( $source ) . wfCloseElement( 'textarea' ) ); } }