commit e9096b7c8dfec379c95b171edf83d895ef777635
parent 495da1140e9d9357184bf3236b8ca5a168d44598
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 15 Sep 2021 21:43:51 +0300
postprocessor: fixed incomplete processing of hex-encoding values
Under certain conditions, the final part of the last value can be left
unprocessed.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
@@ -604,7 +604,8 @@ post_process_urlencoded (struct MHD_PostProcessor *pp,
/* Case: 'value\n' or 'value\r' */
end_value = &post_data[poff];
poff++;
- if (pp->must_ikvi)
+ if (pp->must_ikvi ||
+ (start_value != end_value) )
pp->state = PP_Callback;
else
pp->state = PP_Done;