mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-15 20:25:17 +03:00
27 lines
1,009 B
Diff
27 lines
1,009 B
Diff
Patch-Source: https://github.com/php/php-src/commit/e45850c195dcd5534394cf357a3f776d4916b655
|
|
|
|
From e45850c195dcd5534394cf357a3f776d4916b655 Mon Sep 17 00:00:00 2001
|
|
From: Jakub Zelenka <bukka@php.net>
|
|
Date: Thu, 19 Jan 2023 14:11:18 +0000
|
|
Subject: [PATCH] Fix repeated warning for file uploads limit exceeding
|
|
|
|
---
|
|
main/rfc1867.c | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/main/rfc1867.c b/main/rfc1867.c
|
|
index c2f606c64aa1..b43cfae5a1e2 100644
|
|
--- a/main/rfc1867.c
|
|
+++ b/main/rfc1867.c
|
|
@@ -911,7 +911,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 */
|