diff options
author | Christian Schneider | 2023-08-21 14:07:59 +0200 |
---|---|---|
committer | Christian Schneider | 2023-08-21 14:07:59 +0200 |
commit | 7a0e4193e4762612334fefe869075698d2173414 (patch) | |
tree | 6d68cb0eb28753c5c65dfb4e5fda184bb60be88a /it_url.class | |
parent | 7a2f2e4ac55bb17193a442059b231a7bd2b5b69c (diff) | |
download | itools-7a0e4193e4762612334fefe869075698d2173414.tar.gz itools-7a0e4193e4762612334fefe869075698d2173414.tar.bz2 itools-7a0e4193e4762612334fefe869075698d2173414.zip |
OneDomain support for it_url::redirect
Diffstat (limited to 'it_url.class')
-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 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'])) |