From d1d79691dd39451d7cfcbf74c49dbe0b9559a273 Mon Sep 17 00:00:00 2001 From: leiweibau <105860611+leiweibau@users.noreply.github.com> Date: Mon, 25 Jul 2022 11:17:07 +0200 Subject: [PATCH] Quickfix if an old config file is involved a missing key could cause, that login not possible when PIALERT_WEB_PROTECTION and PIALERT_WEB_PRASSWORD missing. A more advanced fix will follow. --- front/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front/index.php b/front/index.php index 55005e41..4aae0831 100644 --- a/front/index.php +++ b/front/index.php @@ -19,7 +19,7 @@ $config_file_lines_bypass = array_values(preg_grep('/^PIALERT_WEB_PROTECTION\s.* $protection_line = explode("=", $config_file_lines_bypass[0]); $Pia_WebProtection = strtolower(trim($protection_line[1])); -if ($Pia_WebProtection == 'false') +if ($Pia_WebProtection != 'true') { header('Location: /pialert/devices.php'); $_SESSION["login"] = 1; @@ -156,4 +156,4 @@ if ($ENABLED_DARKMODE === True) { \ No newline at end of file +?>