summaryrefslogtreecommitdiff
path: root/it_url.class
diff options
context:
space:
mode:
Diffstat (limited to 'it_url.class')
-rw-r--r--it_url.class4
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'))
{