From af8b923b1cbf2d3289f3d6824586e6c19696bce3 Mon Sep 17 00:00:00 2001 From: mattpass Date: Sun, 19 Jan 2020 10:26:20 +0000 Subject: [PATCH] Request URI set in path --- lib/settings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/settings.php b/lib/settings.php index 25ca097..5f39630 100644 --- a/lib/settings.php +++ b/lib/settings.php @@ -183,7 +183,7 @@ include(dirname(__FILE__)."/plugins-display.php"); // If loggedIn is false or we don't have a password set yet and we're not on login screen, boot user to that if ((!$_SESSION['loggedIn'] || $ICEcoder["password"] == "") && !strpos($_SERVER['SCRIPT_NAME'],"lib/login.php")) { if (file_exists('lib/login.php')) { - header('Location: lib/login.php'); + header('Location: ' . $_SERVER['REQUEST_URI'] . '/lib/login.php'); echo ""; } else { header('Location: login.php');