]> granicus.if.org Git - php/commitdiff
Simpify the max_file_uploads handling code
authorIlia Alshanetsky <iliaa@php.net>
Mon, 16 Nov 2009 13:34:57 +0000 (13:34 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 16 Nov 2009 13:34:57 +0000 (13:34 +0000)
main/rfc1867.c

index 730a5200555cd80a869e26f6a724967f5c59ac5d..91bd2341812f6172afd30703388d7ceaf7c22ff6 100644 (file)
@@ -795,12 +795,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler)
        zend_llist header;
        void *event_extra_data = NULL;
        int llen = 0;
-       char *max_uploads = INI_STR("max_file_uploads");
-       int upload_cnt = 0;
-
-       if (max_uploads && *max_uploads) {
-               upload_cnt = atoi(max_uploads);
-       }
+       int upload_cnt = INI_INT("max_file_uploads");
 
        if (SG(request_info).content_length > SG(post_max_size)) {
                sapi_module.sapi_error(E_WARNING, "POST Content-Length of %ld bytes exceeds the limit of %ld bytes", SG(request_info).content_length, SG(post_max_size));