Fix always returning invalid parameter

This commit is contained in:
Mcat12
2016-08-16 15:55:41 -04:00
committed by GitHub
parent 7265405424
commit c41d377eb3
+1 -1
View File
@@ -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");