]> granicus.if.org Git - php/commitdiff
MFH
authorStefan Esser <sesser@php.net>
Wed, 24 Jul 2002 11:25:55 +0000 (11:25 +0000)
committerStefan Esser <sesser@php.net>
Wed, 24 Jul 2002 11:25:55 +0000 (11:25 +0000)
main/php_variables.c

index 196a348645ac0704f08e484ec1ebc8a061d84334..008b0eec61031094e3e0401aa3150771a6494b5a 100644 (file)
@@ -198,6 +198,10 @@ SAPI_API SAPI_POST_HANDLER_FUNC(php_std_post_handler)
        char *strtok_buf = NULL;
        zval *array_ptr = (zval *) arg;
 
+       if (SG(request_info).post_data==NULL) {
+               return;
+       }       
+
        var = php_strtok_r(SG(request_info).post_data, "&", &strtok_buf);
 
        while (var) {