mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-28 04:09:31 +03:00
response headers: disallow space in header name, allow tab in header value
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user