Add reporting of $_GET and $_POST when generating error reports
This commit is contained in:
parent
33484f9f23
commit
46508b99f5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user