Add reporting of $_GET and $_POST when generating error reports
This commit is contained in:
1 parent
33484f9f23
commit
46508b99f5
1 file changed
+10
@@ -162,6 +162,16 @@ final public function sendDebugMail(string $to, string $subject = "", string $de
|
||||
$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);
|
||||
|
||||
Reference in new issue
Block a user