From 8e585d427b62ed1ec4c128550de0e0b6e7b3a5fa Mon Sep 17 00:00:00 2001 From: David Flatz Date: Thu, 12 Feb 2015 15:15:40 +0100 Subject: suppress warning when we redirect a post --- it_url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_url.class') diff --git a/it_url.class b/it_url.class index cadb6c5..e721f74 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()) . ($_SERVER['QUERY_STRING'] ? '?' . $_SERVER['QUERY_STRING'] : ''))) + if (U($url) == U(it_url::absolute(U()) . ($_SERVER['QUERY_STRING'] ? '?' . $_SERVER['QUERY_STRING'] : '')) && !$_POST) it::error('Potential redirect loop detected: ' . $url); if (EDC('noredir')) { -- cgit v1.2.3