aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-17 20:11:32 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-06-22 20:58:43 +0300
commitc4246b5251bb8ee45ca66b4d24597fa26762d729 (patch)
tree33bfb4763529c15f7ed0393d86f23982f11b19cf /src/microhttpd/internal.h
parenta5af7f737931d4ab4f64977d9a029a326f178f37 (diff)
downloadlibmicrohttpd-c4246b5251bb8ee45ca66b4d24597fa26762d729.tar.gz
libmicrohttpd-c4246b5251bb8ee45ca66b4d24597fa26762d729.zip
Added tracking of the request URL length.
URL may have binary zeros after url-decoding, the length helps to detect such situations.
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r--src/microhttpd/internal.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 1fbb6e65..6906e1bb 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -1034,6 +1034,11 @@ struct MHD_Connection
1034 const char *url; 1034 const char *url;
1035 1035
1036 /** 1036 /**
1037 * The length of the @a url in characters, not including the terminating zero.
1038 */
1039 size_t url_len;
1040
1041 /**
1037 * HTTP version string (i.e. http/1.1). Allocated 1042 * HTTP version string (i.e. http/1.1). Allocated
1038 * in pool. 1043 * in pool.
1039 */ 1044 */