read x-forwarded
This commit is contained in:
parent
8041ff0cec
commit
180eaef3db
1 changed files with 5 additions and 1 deletions
|
@ -83,7 +83,11 @@ class Router {
|
||||||
}
|
}
|
||||||
|
|
||||||
private function get_redirect(): string {
|
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)) {
|
if (is_array($redirect)) {
|
||||||
$redirect = $redirect['redirect'];
|
$redirect = $redirect['redirect'];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue