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 02b084e..cadb6c5 100644
--- a/it_url.class
+++ b/it_url.class
@@ -857,7 +857,7 @@ function redirect($url = null, $type = "temporary")
$url = preg_replace("/[\r\n].*/", '', it_url::absolute($url)); # Security: cut after CR/LF
- if (U($url) == U(it_url::absolute(U($_GET))))
+ if (U($url) == U(it_url::absolute(U()) . ($_SERVER['QUERY_STRING'] ? '?' . $_SERVER['QUERY_STRING'] : '')))
it::error('Potential redirect loop detected: ' . $url);
if (EDC('noredir')) {