Avoid infinite redirect loop.

master
Jason A. Donenfeld 2011-05-13 05:08:11 -04:00
parent fbf63ba769
commit 8a11d9a0f7
1 changed files with 2 additions and 0 deletions

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_"]));
?>