From 96039f52a57085e7c93d398fff0ccdd2e51552ed Mon Sep 17 00:00:00 2001 From: Rob Gill Date: Fri, 1 Jun 2018 09:52:07 +1000 Subject: [PATCH] fix typo in cookie check Signed-off-by: Rob Gill --- scripts/pi-hole/php/password.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pi-hole/php/password.php b/scripts/pi-hole/php/password.php index d62c1aa9..ed95ca31 100644 --- a/scripts/pi-hole/php/password.php +++ b/scripts/pi-hole/php/password.php @@ -42,7 +42,7 @@ // Check for and authorize from persistent cookie if (isset($_COOKIE["persistentlogin"])) { - if ($pwhash = $_COOKIE["persistentlogin"]) + if ($pwhash === $_COOKIE["persistentlogin"]) { $auth = true; // Refresh cookie with new expiry