Skip to content

Commit

Permalink
Sanitise get params
Browse files Browse the repository at this point in the history
  • Loading branch information
partydragen committed Mar 8, 2024
1 parent 005d84e commit 90f00d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom/panel_templates/Default/template.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,19 +306,19 @@ public function onPageLoad() {

$url_parameters = [];
if (isset($_GET['group'])) {
$url_parameters[] = 'group=' . $_GET['group'];
$url_parameters[] = 'group=' . Output::getClean($_GET['group']);
}

if (isset($_GET['integration'])) {
$url_parameters[] = 'integration=' . $_GET['integration'];
$url_parameters[] = 'integration=' . Output::getClean($_GET['integration']);
}

if (isset($_GET['banned'])) {
$url_parameters[] = 'banned=' . $_GET['banned'];
$url_parameters[] = 'banned=' . Output::getClean($_GET['banned']);
}

if (isset($_GET['active'])) {
$url_parameters[] = 'active=' . $_GET['active'];
$url_parameters[] = 'active=' . Output::getClean($_GET['active']);
}

$this->addJSScript('
Expand Down

0 comments on commit 90f00d1

Please sign in to comment.