From c8223d0cb90ea97428eb2d794b255c4925edcbc4 Mon Sep 17 00:00:00 2001 From: odain Date: Mon, 7 Sep 2026 12:07:50 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B010035=20-=20Propagate=20proper=20HTTP=5F?= =?UTF-8?q?REFERER=20after=20authentication?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/loginwebpage.class.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/loginwebpage.class.inc.php b/application/loginwebpage.class.inc.php index 18140c5586..7d02c83922 100644 --- a/application/loginwebpage.class.inc.php +++ b/application/loginwebpage.class.inc.php @@ -187,6 +187,11 @@ class LoginWebPage extends NiceWebPage } } + $sReferer = $_SERVER['HTTP_REFERER'] ?? null; + if (!is_null($sReferer)) { + $aPreviousPostedVars['HTTP_REFERER'] = $sReferer; + } + $aVars = [ 'bFailedLogin' => $bFailedLogin, 'sMessage' => $sMessage,