[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 02/04: response headers: disallow space in header name,
From: |
gnunet |
Subject: |
[libmicrohttpd] 02/04: response headers: disallow space in header name, allow tab in header value |
Date: |
Sun, 01 Aug 2021 20:12:00 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to branch master
in repository libmicrohttpd.
commit 571bdda9070b0cf4a2eea28a7fa64460358036da
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Sun Aug 1 15:33:31 2021 +0300
response headers: disallow space in header name, allow tab in header value
---
src/microhttpd/response.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
index fbe621c4..a7085767 100644
--- a/src/microhttpd/response.c
+++ b/src/microhttpd/response.c
@@ -167,9 +167,9 @@ add_response_entry (struct MHD_Response *response,
(0 == header[0]) ||
(0 == content[0]) ||
(NULL != strchr (header, '\t')) ||
+ (NULL != strchr (header, ' ')) ||
(NULL != strchr (header, '\r')) ||
(NULL != strchr (header, '\n')) ||
- (NULL != strchr (content, '\t')) ||
(NULL != strchr (content, '\r')) ||
(NULL != strchr (content, '\n')) )
return MHD_NO;
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.