Browse Source

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
svn/tags/lighttpd-1.4.20
Xuefer 14 years ago
parent
commit
765d3cbe6a
  1. 3
      tests/docroot/www/get-env.php

3
tests/docroot/www/get-env.php

@ -1,3 +1,4 @@
<?php
print $_ENV[$_GET["env"]];
$env = $_GET["env"];
print isset($_ENV[$env]) ? $_ENV[$env] : '';
?>

Loading…
Cancel
Save