mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix repeated warning for file uploads limit exceeding
This commit is contained in:
parent
f6808648a4
commit
830bdb582f
1 changed files with 4 additions and 1 deletions
|
@ -910,7 +910,10 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) /* {{{ */
|
|||
skip_upload = 1;
|
||||
} else if (upload_cnt <= 0) {
|
||||
skip_upload = 1;
|
||||
sapi_module.sapi_error(E_WARNING, "Maximum number of allowable file uploads has been exceeded");
|
||||
if (upload_cnt == 0) {
|
||||
--upload_cnt;
|
||||
sapi_module.sapi_error(E_WARNING, "Maximum number of allowable file uploads has been exceeded");
|
||||
}
|
||||
}
|
||||
|
||||
/* Return with an error if the posted data is garbled */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue