summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2009-11-16 13:34:57 +0000
committerIlia Alshanetsky <iliaa@php.net>2009-11-16 13:34:57 +0000
commit2e13e89bd17ea9d5e601a0183f27303f40a74c6d (patch)
tree0fe15554865ad2fdb702953258e8cbd71cd1818d /main
parentf61a06350a03e3c8da7e9b3ba42f50e214b566d8 (diff)
downloadphp-git-2e13e89bd17ea9d5e601a0183f27303f40a74c6d.tar.gz
Simpify the max_file_uploads handling code
Diffstat (limited to 'main')
-rw-r--r--main/rfc1867.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c
index ed22312233..06cf6d6d61 100644
--- a/main/rfc1867.c
+++ b/main/rfc1867.c
@@ -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));