From 8d158c05bb97920c45f1e72b915aa1c0d0dc758c Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 19 Feb 2009 19:08:22 +0000 Subject: [PATCH] escape $wgScript here --- includes/specials/SpecialListUserRestrictions.php | 3 ++- includes/specials/SpecialRestrictUser.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialListUserRestrictions.php b/includes/specials/SpecialListUserRestrictions.php index 27b2429822..98e7111f1f 100644 --- a/includes/specials/SpecialListUserRestrictions.php +++ b/includes/specials/SpecialListUserRestrictions.php @@ -24,9 +24,10 @@ function wfSpecialListUserRestrictions() { class SpecialListUserRestrictionsForm { public function getHTML() { global $wgRequest, $wgScript, $wgTitle; + $action = htmlspecialchars( $wgScript ); $s = ''; $s .= Xml::fieldset( wfMsg( 'listuserrestrictions-legend' ) ); - $s .= "
"; + $s .= ""; $s .= Xml::hidden( 'title', $wgTitle->getPrefixedDbKey() ); $s .= Xml::label( wfMsgHtml( 'listuserrestrictions-type' ), 'type' ) . ' ' . self::typeSelector( 'type', $wgRequest->getVal( 'type' ), 'type' ); diff --git a/includes/specials/SpecialRestrictUser.php b/includes/specials/SpecialRestrictUser.php index 761e0cd6e1..b946cde83e 100644 --- a/includes/specials/SpecialRestrictUser.php +++ b/includes/specials/SpecialRestrictUser.php @@ -37,7 +37,8 @@ function wfSpecialRestrictUser( $par = null ) { class RestrictUserForm { public static function selectUserForm( $val = null, $error = null ) { global $wgScript, $wgTitle; - $s = Xml::fieldset( wfMsg( 'restrictuser-userselect' ) ) . ""; + $action = htmlspecialchars( $wgScript ); + $s = Xml::fieldset( wfMsg( 'restrictuser-userselect' ) ) . ""; if( $error ) $s .= '

' . $error . '

'; $s .= Xml::hidden( 'title', $wgTitle->getPrefixedDbKey() ); -- 2.20.1