From a260f4ff88de7bbb2f46d2633db5a0a42213ca96 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Tue, 28 Mar 2023 19:21:19 +0200 Subject: [PATCH] ErrorHandler: use var_export for dumping superglobals as well --- models/ErrorHandler.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/models/ErrorHandler.php b/models/ErrorHandler.php index 8e55c57..4ce560a 100644 --- a/models/ErrorHandler.php +++ b/models/ErrorHandler.php @@ -63,11 +63,11 @@ class ErrorHandler // Include info on the contents of superglobals. if (!empty($_SESSION)) - $debug_info .= "\nSESSION: " . print_r($_SESSION, true); + $debug_info .= "\nSESSION: " . var_export($_SESSION, true); if (!empty($_POST)) - $debug_info .= "\nPOST: " . print_r($_POST, true); + $debug_info .= "\nPOST: " . var_export($_POST, true); if (!empty($_GET)) - $debug_info .= "\nGET: " . print_r($_GET, true); + $debug_info .= "\nGET: " . var_export($_GET, true); return $debug_info; }