summaryrefslogtreecommitdiff
path: root/includes/specials/SpecialListUserRestrictions.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/specials/SpecialListUserRestrictions.php')
-rw-r--r--includes/specials/SpecialListUserRestrictions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/specials/SpecialListUserRestrictions.php b/includes/specials/SpecialListUserRestrictions.php
index 27b24298..98e7111f 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 .= "<form action=\"{$wgScript}\">";
+ $s .= "<form action=\"{$action}\">";
$s .= Xml::hidden( 'title', $wgTitle->getPrefixedDbKey() );
$s .= Xml::label( wfMsgHtml( 'listuserrestrictions-type' ), 'type' ) . '&nbsp;' .
self::typeSelector( 'type', $wgRequest->getVal( 'type' ), 'type' );