Add reporting of $_GET and $_POST when generating error reports

This commit is contained in:
Joshua Ramon Enslin 2020-07-20 14:19:12 +02:00 committed by Stefan Rohde-Enslin
parent 33484f9f23
commit 46508b99f5

View File

@ -162,6 +162,16 @@ class MDErrorReporter {
$msg .= $this->_formulateDebugMailSection("The current content of \$_SERVER", $_SERVER);
}
// Append the contents of $_SERVER
if (!empty($_GET)) {
$msg .= $this->_formulateDebugMailSection("The current content of \$_GET", $_GET);
}
// Append the contents of $_SERVER
if (!empty($_POST)) {
$msg .= $this->_formulateDebugMailSection("The current content of \$_POST", $_POST);
}
// Append the contents of $_SESSION
if (session_status() == PHP_SESSION_ACTIVE) {
$msg .= $this->_formulateDebugMailSection("The current content of \$_SESSION", $_SESSION);