X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Frequest-functions.php;h=85f7883078a5f5226e8435369198b3957897cff7;hb=45799353e6886efecaa6fe169848321a81a08c6e;hp=f8c84e627046ffb65eb13c46275445ac41e9f24e;hpb=596c8ab32594401ca84abfbfe35513ddfff31bec;p=mailer.git diff --git a/inc/request-functions.php b/inc/request-functions.php index f8c84e6270..85f7883078 100644 --- a/inc/request-functions.php +++ b/inc/request-functions.php @@ -229,16 +229,22 @@ function setPostRequestElement ($element, $value) { // Value is an array so set it directly $GLOBALS['raw_request']['post'][$element] = $value; } else { + // Debug message + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',value=' . $value . ' - BEFORE!'); + // Escape both $element = SQL_ESCAPE($element); $value = SQL_ESCAPE($value); + // Debug message + //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'element=' . $element . ',value=' . $value . ' - AFTER!'); + // Set regular entry $GLOBALS['raw_request']['post'][$element] = $value; } // Update cache - $GLOBALS['cache_request']['post'][$element][null] = $value; + $GLOBALS['cache_request']['post'][$element][NULL] = $value; } // Checks whether a form was sent. If so, the $_POST['ok'] element must be set