diff options
author | Michal Čihař <michal@cihar.com> | 2017-01-07 16:23:28 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-01-07 16:23:28 +0300 |
commit | 1089a7d67e39f9017ae96c92b922f89648dff240 (patch) | |
tree | 5b59ac66cc991153b540de4bb3bb47bafd847397 /phpinfo.php | |
parent | 93e354c2e33347a138234d236b2e987a7f092b14 (diff) |
Limit what we display in phpinfo
- general information
- configuration
- modules
This way we avoid displaying sensitive things (such as httpOnly cookies
from environment of variables).
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'phpinfo.php')
-rw-r--r-- | phpinfo.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpinfo.php b/phpinfo.php index 6ac84c7ea4..0daa5f9f65 100644 --- a/phpinfo.php +++ b/phpinfo.php @@ -18,5 +18,5 @@ $response->getHeader()->sendHttpHeaders(); * Displays PHP information */ if ($GLOBALS['cfg']['ShowPhpInfo']) { - phpinfo(); + phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES); } |