aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/connection.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-03-01 13:29:58 +0100
committerChristian Grothoff <christian@grothoff.org>2018-03-01 13:29:58 +0100
commit5717a9ec22d72d4d4202dfd3e1071ded9182e51e (patch)
treeb402e7e8c96ce7da14b7277aef48b6b1f8630bfd /src/microhttpd/connection.c
parent785ae52b3e397baf21400512ef2b4641b4170049 (diff)
downloadlibmicrohttpd-5717a9ec22d72d4d4202dfd3e1071ded9182e51e.tar.gz
libmicrohttpd-5717a9ec22d72d4d4202dfd3e1071ded9182e51e.zip
expand strictness to cover spaces in URL
Diffstat (limited to 'src/microhttpd/connection.c')
-rw-r--r--src/microhttpd/connection.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c
index 39253a9f..691aa427 100644
--- a/src/microhttpd/connection.c
+++ b/src/microhttpd/connection.c
@@ -2241,6 +2241,14 @@ parse_initial_message_line (struct MHD_Connection *connection,
2241 line_len - (uri - line)); 2241 line_len - (uri - line));
2242 } 2242 }
2243 } 2243 }
2244 if ( (1 <= daemon->strict_for_client) &&
2245 (NULL != memchr (line,
2246 ' ',
2247 http_version - line)) )
2248 {
2249 /* space exists in URI and we are supposed to be strict, reject */
2250 return MHD_NO;
2251 }
2244 if (NULL != daemon->uri_log_callback) 2252 if (NULL != daemon->uri_log_callback)
2245 { 2253 {
2246 connection->client_aware = true; 2254 connection->client_aware = true;