libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 685e6368f4c3639ff1e62ac4a3299f88487a8332
parent cc1d7c61ae1a284e353082697637782ed69f105c
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Fri, 17 Sep 2021 12:19:03 +0300

postprocessor: simplify processing of urlencoding in edge cases

Diffstat:
Msrc/microhttpd/postprocessor.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c @@ -741,6 +741,9 @@ post_process_urlencoded (struct MHD_PostProcessor *pp, } if (NULL == end_value) end_value = &post_data[poff]; + if ( (NULL != last_escape) && + (2 < (end_value - last_escape)) ) + last_escape = NULL; process_value (pp, start_value, end_value,