diff options
-rw-r--r-- | hittpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hittpd.c b/hittpd.c index 7b97042..09c89d8 100644 --- a/hittpd.c +++ b/hittpd.c @@ -543,7 +543,7 @@ on_message_complete(http_parser *p) { *s = tolower(*s); *s = 0; } - if (strstr(host, "..")) { + if (!*host || *host == '.' || strstr(host, "..")) { send_error(p, 403, "Forbidden"); return 0; } |