Skip to content

Commit e45850c

Browse files
committed
Fix repeated warning for file uploads limit exceeding
1 parent b5ccaaf commit e45850c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main/rfc1867.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,10 @@ SAPI_API SAPI_POST_HANDLER_FUNC(rfc1867_post_handler) /* {{{ */
911911
skip_upload = 1;
912912
} else if (upload_cnt <= 0) {
913913
skip_upload = 1;
914-
sapi_module.sapi_error(E_WARNING, "Maximum number of allowable file uploads has been exceeded");
914+
if (upload_cnt == 0) {
915+
--upload_cnt;
916+
sapi_module.sapi_error(E_WARNING, "Maximum number of allowable file uploads has been exceeded");
917+
}
915918
}
916919

917920
/* Return with an error if the posted data is garbled */

0 commit comments

Comments
 (0)