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>
This commit is contained in:
Michal Čihař 2017-01-07 14:23:28 +01:00
parent 93e354c2e3
commit 1089a7d67e

View File

@ -18,5 +18,5 @@ $response->getHeader()->sendHttpHeaders();
* Displays PHP information
*/
if ($GLOBALS['cfg']['ShowPhpInfo']) {
phpinfo();
phpinfo(INFO_GENERAL | INFO_CONFIGURATION | INFO_MODULES);
}