diff options
author | mOo <moo.lighttpd@gmail.com> | 2008-05-22 06:50:01 +0000 |
---|---|---|
committer | mOo <moo.lighttpd@gmail.com> | 2008-05-22 06:50:01 +0000 |
commit | 765d3cbe6af6a3ee276436ef9bc8724054a98079 (patch) | |
tree | 59fdeedb21135ea2ae95f1247e04e44106b698a9 /tests/docroot | |
parent | 695a2277838bc5c08d50fb20402de385f1d5654a (diff) | |
download | lighttpd-git-765d3cbe6af6a3ee276436ef9bc8724054a98079.tar.gz |
avoid undefined index triggered by user's php.ini
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2178 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'tests/docroot')
-rw-r--r-- | tests/docroot/www/get-env.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/docroot/www/get-env.php b/tests/docroot/www/get-env.php index 8af72a61..cd7fa040 100644 --- a/tests/docroot/www/get-env.php +++ b/tests/docroot/www/get-env.php @@ -1,3 +1,4 @@ <?php - print $_ENV[$_GET["env"]]; + $env = $_GET["env"]; + print isset($_ENV[$env]) ? $_ENV[$env] : ''; ?> |