From c503f91d728e08e8ff4c488138242b2cd4561a27 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Mon, 2 Oct 2023 16:53:08 +0200 Subject: avoid false positives in redirs from subdomain to onedomain, ::absolute always yields onedomain (mail1479) --- it_url.class | 4 ++-- 1 file 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')) { -- cgit v1.2.3