diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2007-04-01 19:09:36 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2007-04-01 19:09:36 +0000 |
| commit | f80afa623de934abc9d7cb8bc5975e2ee448e888 (patch) | |
| tree | 80a7280f77c8b0a6071567bf898308d060a0a815 /main | |
| parent | 99c5cebab37dd662a4d5f8d9984058fdc45673c2 (diff) | |
| download | php-git-f80afa623de934abc9d7cb8bc5975e2ee448e888.tar.gz | |
Fixed bug #40921 (php_default_post_reader crashes when post_max_size is
exceeded).
Diffstat (limited to 'main')
| -rw-r--r-- | main/php_content_types.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/php_content_types.c b/main/php_content_types.c index 922fc2c157..306645b6fa 100644 --- a/main/php_content_types.c +++ b/main/php_content_types.c @@ -42,7 +42,7 @@ SAPI_API SAPI_POST_READER_FUNC(php_default_post_reader) /* $HTTP_RAW_POST_DATA registration */ if(!strcmp(SG(request_info).request_method, "POST")) { - if(NULL == SG(request_info).post_entry) { + if(NULL == SG(request_info).post_entry && SG(request_info).post_data) { /* no post handler registered, so we just swallow the data */ sapi_read_standard_form_data(TSRMLS_C); length = SG(request_info).post_data_length; |
