diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-13 05:08:11 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-13 05:08:11 -0400 |
commit | 8a11d9a0f707b4ba476a31cd0eae9974829f5df2 (patch) | |
tree | 1be04659b222085841aae248e428f9e6577e3539 | |
parent | Proper ID scheme for thumbs. (diff) | |
download | PhotoFloat-8a11d9a0f707b4ba476a31cd0eae9974829f5df2.tar.xz PhotoFloat-8a11d9a0f707b4ba476a31cd0eae9974829f5df2.zip |
Avoid infinite redirect loop.
-rw-r--r-- | web/staticrender.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/staticrender.php b/web/staticrender.php index 8994662..a0409d5 100644 --- a/web/staticrender.php +++ b/web/staticrender.php @@ -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_"])); ?> |