diff options
author | David Flatz | 2015-02-12 15:15:40 +0100 |
---|---|---|
committer | David Flatz | 2015-02-12 15:15:40 +0100 |
commit | 8e585d427b62ed1ec4c128550de0e0b6e7b3a5fa (patch) | |
tree | f51f858c7f6082dacd95e29a7baf5025ff0efcc7 | |
parent | 4946ffe70f5fbb6f8605540fcf98db2d50a8a4f1 (diff) | |
download | itools-8e585d427b62ed1ec4c128550de0e0b6e7b3a5fa.tar.gz itools-8e585d427b62ed1ec4c128550de0e0b6e7b3a5fa.tar.bz2 itools-8e585d427b62ed1ec4c128550de0e0b6e7b3a5fa.zip |
suppress warning when we redirect a post
-rw-r--r-- | it_url.class | 2 |
1 files changed, 1 insertions, 1 deletions
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')) { |