gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libmicrohttpd] branch master updated: postprocessor: simplify processin


From: gnunet
Subject: [libmicrohttpd] branch master updated: postprocessor: simplify processing of urlencoding in edge cases
Date: Fri, 17 Sep 2021 11:19:27 +0200

This is an automated email from the git hooks/post-receive script.

karlson2k pushed a commit to branch master
in repository libmicrohttpd.

The following commit(s) were added to refs/heads/master by this push:
     new 685e6368 postprocessor: simplify processing of urlencoding in edge 
cases
685e6368 is described below

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

    postprocessor: simplify processing of urlencoding in edge cases
---
 src/microhttpd/postprocessor.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/microhttpd/postprocessor.c b/src/microhttpd/postprocessor.c
index 21007e75..f6b634ad 100644
--- 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,

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]