summaryrefslogtreecommitdiff
path: root/src/web/router.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/web/router.php6
1 files changed, 5 insertions, 1 deletions
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'];
}