summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_url.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_url.class b/it_url.class
index 6a0b126..540fd46 100644
--- a/it_url.class
+++ b/it_url.class
@@ -830,7 +830,7 @@ static function redirect($url = null, $type = "temporary")
$url = preg_replace("/[\r\n].*/", '', it_url::absolute($url)); # Security: cut after CR/LF
- if (!$_POST && $url == it_url::absolute(U($_GET)))
+ if (!$_POST && $url == it_url::absolute($_SERVER['REQUEST_URI']))
it::error("redirect to self: $url");
if (EDC('noredir'))