Skip to content

Commit

Permalink
Sent CSP headers for phpinfo
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jun 30, 2016
1 parent 9cb8b30 commit d929c89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion phpinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@
* Gets core libraries and defines some variables
*/
require_once 'libraries/common.inc.php';
PMA_Response::getInstance()->disable();
$response = PMA_Response::getInstance();
$response->disable();
$response->getHeader()->sendHttpHeaders();

/**
* Displays PHP information
Expand Down

0 comments on commit d929c89

Please sign in to comment.