From c41d377eb37fa3559d80cfb0c9c110b5abb76784 Mon Sep 17 00:00:00 2001 From: Mcat12 Date: Tue, 16 Aug 2016 15:55:41 -0400 Subject: [PATCH] Fix always returning invalid parameter --- php/get.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/get.php b/php/get.php index b67bc11f..a09ae2f3 100644 --- a/php/get.php +++ b/php/get.php @@ -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");