mirror of
https://github.com/php/php-src.git
synced 2026-04-09 00:53:30 +02:00
Fix repeated warning for file uploads limit exceeding
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user