summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_url.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_url.class b/it_url.class
index ec4d62d..00036e3 100644
--- a/it_url.class
+++ b/it_url.class
@@ -880,9 +880,9 @@ static function redirect($url = null, $type = "temporary")
if (!($code = $codes[$type]) || !$url)
it::fatal("invalid redirect type or missing redirect url");
- $url = preg_replace("/[\r\n].*/", '', it_url::absolute($url)); # Security: cut after CR/LF
+ $url = preg_replace("/[\r\n].*/", '', static::absolute($url)); # Security: cut after CR/LF
- if (EDC('utest'))
+ if ($_GET['utest'])
$url = it::replace(['[?&]uok=1' => ""], $url); # remove marker for correctly passed through U()
if (!$_POST && $url == static::absolute($_SERVER['REQUEST_URI']))