diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2009-11-17 20:33:51 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2009-11-17 20:33:51 +0000 |
commit | 2e9c3ed919134281f40eed1a7e4b1039ee791819 (patch) | |
tree | 11e31534527993ae1df2b66ab429ac45f7dcc8a3 /main | |
parent | 5dd6b9ffa909aae050dfaa6a95cceea2d376a794 (diff) | |
download | php-git-2e9c3ed919134281f40eed1a7e4b1039ee791819.tar.gz |
Make it possible to disable post_max_size
Diffstat (limited to 'main')
-rw-r--r-- | main/rfc1867.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/rfc1867.c b/main/rfc1867.c index 06cf6d6d61..291a07dffc 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -797,7 +797,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) int llen = 0; int upload_cnt = INI_INT("max_file_uploads"); - if (SG(request_info).content_length > SG(post_max_size)) { + if (SG(post_max_size) > 0 && 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)); return; } |