From 142979269003e49bac5a74283a9e2ec535b1f8ff Mon Sep 17 00:00:00 2001 From: bruno-ds Date: Thu, 4 Mar 2021 09:39:48 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B03668=20-=20fix=20an=20improper=20redirec?= =?UTF-8?q?tion=20to=20the=20homepage=20when=20iTop=20is=20behind=20a=20re?= =?UTF-8?q?verse=20proxy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/loginwebpage.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/loginwebpage.class.inc.php b/application/loginwebpage.class.inc.php index db06af42b..47cfe6563 100644 --- a/application/loginwebpage.class.inc.php +++ b/application/loginwebpage.class.inc.php @@ -685,7 +685,7 @@ class LoginWebPage extends NiceWebPage public static function HTTPReload() { - $sOriginURL = $_SERVER['REQUEST_SCHEME'] . '://' . $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; + $sOriginURL = utils::GetCurrentAbsoluteUrl(); if (!utils::StartsWith($sOriginURL, utils::GetAbsoluteUrlAppRoot())) { // If the found URL does not start with the configured AppRoot URL