]> git.mxchange.org Git - mailer.git/blobdiff - debug.php
Complete rewrite of and , wrapper functions added, see bug #101
[mailer.git] / debug.php
index 38b90c5b9e2bad2c9331194b47e9eca669880f4c..533676e3f9fe6fabca4ecfe93110740bcdb5dc9c 100644 (file)
--- a/debug.php
+++ b/debug.php
@@ -54,13 +54,13 @@ if ((isBooleanConstantAndTrue('mxchange_installed')) && (getTotalFatalErrors() =
        } // END - if
 
        // Is the request parameter set?
-       if (isset($_POST['request'])) {
+       if (REQUEST_ISSET_POST(('request'))) {
                // Handle the request
-               if (DEBUG_HANDLE_REQUEST($_POST['request'])) {
+               if (DEBUG_HANDLE_REQUEST(REQUEST_POST('request'))) {
                        // Construct FQFN for the module
                        $INC = sprintf("inc/debug/%s/request_%s",
                                getConfig('debug_mode'),
-                               SQL_ESCAPE($_POST['request'])
+                               SQL_ESCAPE(REQUEST_POST('request'))
                        );
 
                        // Is the module there? Else we log it!
@@ -69,11 +69,11 @@ if ((isBooleanConstantAndTrue('mxchange_installed')) && (getTotalFatalErrors() =
                                LOAD_INC($INC);
                        } else {
                                // Missing request file, may happen while development
-                               DEBUG_ABUSE_LOG(__FILE__, __LINE__, "request_404", $_POST['request']);
+                               DEBUG_ABUSE_LOG(__FILE__, __LINE__, "request_404", REQUEST_POST('request'));
                        }
                } else {
                        // Unhandled request detected
-                       DEBUG_ABUSE_LOG(__FILE__, __LINE__, "request_unhandled", $_POST['request']);
+                       DEBUG_ABUSE_LOG(__FILE__, __LINE__, "request_unhandled", REQUEST_POST('request'));
                }
        } else {
                // Empty request