From d2260cc8d39a2c648fa613d8447095209ba1f159 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Thu, 13 Jul 2006 10:06:24 +0000 Subject: [PATCH] As a further precaution, use wfOpenElement() and wfCloseElement() --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ) ); } } -- 2.20.1