Avoid infinite redirect loop.

This commit is contained in:
Jason A. Donenfeld 2011-05-13 05:08:11 -04:00
parent fbf63ba769
commit 8a11d9a0f7

View File

@ -1,4 +1,6 @@
<?php
if ($_ENV["SCRIPT_URL"] == $_ENV["SCRIPT_NAME"])
die("Infinite loop.");
putenv('LANG=en_US.UTF-8');
passthru("utils/serverexecute ".escapeshellarg($_ENV["SCRIPT_URI"]."#!".$_GET["_escaped_fragment_"]));
?>