From 180eaef3dbd12f39b74dc02ee68a35fdb23ca3a6 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 26 Nov 2024 13:05:21 -0500 Subject: [PATCH] read x-forwarded --- src/web/router.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/web/router.php b/src/web/router.php index 55f17c3..572e4d9 100644 --- a/src/web/router.php +++ b/src/web/router.php @@ -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']; }