mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Check if the GET param 'tab' is set before use
Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
+1
-1
@@ -223,7 +223,7 @@ if (isset($setupVars["API_PRIVACY_MODE"])) {
|
||||
?>
|
||||
|
||||
<?php
|
||||
if (in_array($_GET['tab'], array("sysadmin", "blocklists", "dns", "piholedhcp", "api", "teleporter"))) {
|
||||
if (isset($_GET['tab']) && in_array($_GET['tab'], array("sysadmin", "blocklists", "dns", "piholedhcp", "api", "teleporter"))) {
|
||||
$tab = $_GET['tab'];
|
||||
} else {
|
||||
$tab = "sysadmin";
|
||||
|
||||
Reference in New Issue
Block a user