From f4fc80e21b9086988ffc3b91d3e43d51f61faf75 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 28 Jun 2011 05:29:19 +0000 Subject: [PATCH] Casting added, fix for bigintval() verifcation --- inc/modules/guest/what-register.php | 2 +- inc/request-functions.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.5