From: Brion Vibber Date: Mon, 26 Apr 2004 07:35:20 +0000 (+0000) Subject: XHTML fixes X-Git-Tag: 1.3.0beta1~274 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=46e67520e550ed7dfd7a2ebaa9182d6ee1a25456;p=lhc%2Fweb%2Fwiklou.git XHTML fixes --- diff --git a/includes/SpecialBlockip.php b/includes/SpecialBlockip.php index cbf6c33f20..77ed430bb8 100644 --- a/includes/SpecialBlockip.php +++ b/includes/SpecialBlockip.php @@ -31,47 +31,57 @@ class IPBlockForm { global $wgOut, $wgUser, $wgLang, $wgDefaultBlockExpiry; global $wgRequest; - $wgOut->setPagetitle( wfMsg( "blockip" ) ); - $wgOut->addWikiText( wfMsg( "blockiptext" ) ); + $wgOut->setPagetitle( htmlspecialchars( wfMsg( "blockip" ) ) ); + $wgOut->addWikiText( htmlspecialchars( wfMsg( "blockiptext" ) ) ); if ( is_null( $this->BlockExpiry ) || $this->BlockExpiry === "" ) { $this->BlockExpiry = $wgDefaultBlockExpiry; } - $mIpaddress = wfMsg( "ipaddress" ); - $mIpbexpiry = wfMsg( "ipbexpiry" ); - $mIpbreason = wfMsg( "ipbreason" ); - $mIpbsubmit = wfMsg( "ipbsubmit" ); + $mIpaddress = htmlspecialchars( wfMsg( "ipaddress" ) ); + $mIpbexpiry = htmlspecialchars( wfMsg( "ipbexpiry" ) ); + $mIpbreason = htmlspecialchars( wfMsg( "ipbreason" ) ); + $mIpbsubmit = htmlspecialchars( wfMsg( "ipbsubmit" ) ); $titleObj = Title::makeTitle( NS_SPECIAL, "Blockip" ); $action = $titleObj->escapeLocalURL( "action=submit" ); if ( "" != $err ) { - $wgOut->setSubtitle( wfMsg( "formerror" ) ); - $wgOut->addHTML( "

{$err}\n" ); + $wgOut->setSubtitle( htmlspecialchars( wfMsg( "formerror" ) ) ); + $wgOut->addHTML( "

{$err}

\n" ); } $scBlockAddress = htmlspecialchars( $this->BlockAddress ); $scBlockExpiry = htmlspecialchars( $this->BlockExpiry ); $scBlockReason = htmlspecialchars( $this->BlockReason ); - $wgOut->addHTML( "

+ $wgOut->addHTML( "

- - - - - - - -
{$mIpaddress}: - -
{$mIpbexpiry}: - -
{$mIpbreason}: - -
  - -
+ + + + + + + + + + + + + + + + + +
{$mIpaddress}: + +
{$mIpbexpiry}: + +
{$mIpbreason}: + +
  + +
\n" ); }