diff options
author | Urban Müller | 2023-10-02 16:53:08 +0200 |
---|---|---|
committer | Urban Müller | 2023-10-02 16:53:08 +0200 |
commit | c503f91d728e08e8ff4c488138242b2cd4561a27 (patch) | |
tree | 7cbee8d377a5412cfe2a629bc943bf8ca34596cd | |
parent | 338e6dea486458d4279e8b17e419143fd45f4c60 (diff) | |
download | itools-c503f91d728e08e8ff4c488138242b2cd4561a27.tar.gz itools-c503f91d728e08e8ff4c488138242b2cd4561a27.tar.bz2 itools-c503f91d728e08e8ff4c488138242b2cd4561a27.zip |
avoid false positives in redirs from subdomain to onedomain, ::absolute always yields onedomain (mail1479)
-rw-r--r-- | it_url.class | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class index 2124edc..4f7dd17 100644 --- a/it_url.class +++ b/it_url.class @@ -885,8 +885,8 @@ static function redirect($url = null, $type = "temporary") if ($_GET['utest']) $url = it::replace(['[?&]uok=1' => ""], $url); # remove marker for correctly passed through U() - if (!$_POST && $url == static::absolute($_SERVER['REQUEST_URI'])) - it::error("redirect to self. " . static::absolute($_SERVER['REQUEST_URI']) . " -> $url"); + if (!$_POST && $url == $_SERVER['SCRIPT_URI']) + it::error("redirect to self. " . $_SERVER['SCRIPT_URI'] . " -> $url"); if (EDC('noredir')) { |