mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Fix always returning invalid parameter
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ if(!isset($_GET['list']))
|
||||
|
||||
$type = $_GET['list'];
|
||||
|
||||
if($type !== "white" || $type !== "black")
|
||||
if($type !== "white" && $type !== "black")
|
||||
die("Invalid list parameter");
|
||||
|
||||
$rawList = file_get_contents("/etc/pihole/${type}list.txt");
|
||||
|
||||
Reference in New Issue
Block a user