X-Git-Url: http://git.dj3c1t.com/?a=blobdiff_plain;f=mw%2Fenv%2Fmodules%2Fmw_env_urls.php;h=9a6b014204c58b5b93ea21910d280f2317a64257;hb=ed558d720ebf6985290c99297f5b1d2c86d1f60a;hp=7bf6153ae8a29649d4663957ac008a9889672f05;hpb=5dfe5e84a7007ddd9737707ce15f0155e6415066;p=mtweb diff --git a/mw/env/modules/mw_env_urls.php b/mw/env/modules/mw_env_urls.php index 7bf6153..9a6b014 100644 --- a/mw/env/modules/mw_env_urls.php +++ b/mw/env/modules/mw_env_urls.php @@ -41,8 +41,11 @@ "wait" => $wait ) ); - if(!$wait && !headers_sent()){ - header("Location: ".str_replace("&", "&", $url)); + if(!headers_sent()){ + if($wait){ + if(function_exists("header_remove")) header_remove("Location"); + } + else header("Location: ".str_replace("&", "&", $url)); } }