read x-forwarded

This commit is contained in:
Murphy 2024-11-26 13:05:21 -05:00
parent 8041ff0cec
commit 180eaef3db
Signed by: freya
GPG key ID: 9FBC6FFD6D2DBF17

View file

@ -83,7 +83,11 @@ class Router {
}
private function get_redirect(): string {
$redirect = $_GET['redirect'] ?? $this->get_post_info('redirect') ?? '';
$redirect =
$this->get_post_info('redirect') ??
$_GET['redirect'] ??
$_SERVER['HTTP_X_FORWARDED_HOST'] ??
'';
if (is_array($redirect)) {
$redirect = $redirect['redirect'];
}