]> git.mxchange.org Git - mailer.git/commitdiff
Casting added, fix for bigintval() verifcation
authorRoland Häder <roland@mxchange.org>
Tue, 28 Jun 2011 05:29:19 +0000 (05:29 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 28 Jun 2011 05:29:19 +0000 (05:29 +0000)
inc/modules/guest/what-register.php
inc/request-functions.php

index 69a020c4281aa243eaf76b3844f0ac6a7f7bf3ce..6050874d19826384f1b9f646569a1ed2f6d9b740 100644 (file)
@@ -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
 
index b0ef0773b1b2657efc86a5d8149295649810ce0c..ee70e614020d7d2810a1819d4b6c9d230934aad5 100644 (file)
@@ -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