N°10035 - Propagate proper HTTP_REFERER after authentication

This commit is contained in:
odain
2026-09-07 12:07:50 +02:00
parent 9e4f2a3053
commit c8223d0cb9

View File

@@ -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,