From 46508b99f5211ea2bd9f7f627cee65fca2fd5f70 Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Mon, 20 Jul 2020 14:19:12 +0200 Subject: [PATCH] Add reporting of $_GET and $_POST when generating error reports --- MDErrorReporter.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/MDErrorReporter.php b/MDErrorReporter.php index af3c558..a89c03e 100644 --- a/MDErrorReporter.php +++ b/MDErrorReporter.php @@ -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);