From bb6e3b7fd7c7ab86aeb23edcc4266b5349bacd2b Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Tue, 17 Nov 2009 20:33:51 +0000 Subject: [PATCH] Make it possible to disable post_max_size --- main/rfc1867.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/rfc1867.c b/main/rfc1867.c index c9201f2325..410623fdaa 100644 --- a/main/rfc1867.c +++ b/main/rfc1867.c @@ -596,7 +596,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; } -- 2.50.1