From: Roland Häder Date: Tue, 28 Jun 2011 05:29:19 +0000 (+0000) Subject: Casting added, fix for bigintval() verifcation X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f4fc80e21b9086988ffc3b91d3e43d51f61faf75;p=mailer.git Casting added, fix for bigintval() verifcation --- diff --git a/inc/modules/guest/what-register.php b/inc/modules/guest/what-register.php index 69a020c428..6050874d19 100644 --- a/inc/modules/guest/what-register.php +++ b/inc/modules/guest/what-register.php @@ -136,7 +136,7 @@ if ((isFormSent()) && (isRegistrationDataComplete())) { // ZIP codes are numerical values $content['zip'] = ''; - if (isPostRequestParameterSet('zip')) { + if ((isPostRequestParameterSet('zip')) && (postRequestParameter('zip') > 0)) { $content['zip'] = bigintval(postRequestParameter('zip')); } // END - if diff --git a/inc/request-functions.php b/inc/request-functions.php index b0ef0773b1..ee70e61402 100644 --- a/inc/request-functions.php +++ b/inc/request-functions.php @@ -42,8 +42,8 @@ if (!defined('__SECURITY')) { // Initialize the request elements function initRequest () { - $GLOBALS['raw_request']['get'] = $_GET; - $GLOBALS['raw_request']['post'] = $_POST; + $GLOBALS['raw_request']['get'] = (array) $_GET; + $GLOBALS['raw_request']['post'] = (array) $_POST; } // Wrapper for elements in $_GET