Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2017-01-07 16:23:28 +0300
committerMichal Čihař <michal@cihar.com>2017-01-07 16:23:28 +0300
commit1089a7d67e39f9017ae96c92b922f89648dff240 (patch)
tree5b59ac66cc991153b540de4bb3bb47bafd847397 /phpinfo.php
parent93e354c2e33347a138234d236b2e987a7f092b14 (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.php2
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);
}