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>2016-06-30 10:49:37 +0300
committerMichal Čihař <michal@cihar.com>2016-06-30 10:49:37 +0300
commit9f3823a6bc986e911b52b41338881ff35dccc37c (patch)
tree1496974651176fefab80a47a76add010b89d79ae /phpinfo.php
parentf2042085409550bea9fc01fb20b4d0f782287c5c (diff)
Sent CSP headers for phpinfo
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'phpinfo.php')
-rw-r--r--phpinfo.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpinfo.php b/phpinfo.php
index 55ff9d27b4..6ac84c7ea4 100644
--- a/phpinfo.php
+++ b/phpinfo.php
@@ -10,7 +10,9 @@
* Gets core libraries and defines some variables
*/
require_once 'libraries/common.inc.php';
-PMA\libraries\Response::getInstance()->disable();
+$response = PMA\libraries\Response::getInstance();
+$response->disable();
+$response->getHeader()->sendHttpHeaders();
/**
* Displays PHP information