diff options
author | Stefan Bühler <stbuehler@web.de> | 2011-11-30 20:46:49 +0000 |
---|---|---|
committer | Stefan Bühler <stbuehler@web.de> | 2011-11-30 20:46:49 +0000 |
commit | b748fb890de25ca412dced4ef792dcccc66362c5 (patch) | |
tree | 5aac072cb79e1984a0a41f3b5ca33bdd30950ea0 /src | |
parent | 0f96222e7e3ca51767cf13144ec5d777b8869677 (diff) | |
download | lighttpd-git-b748fb890de25ca412dced4ef792dcccc66362c5.tar.gz |
[core] accept dots in ipv6 addresses in host header (fixes #2359)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2811 152afb58-edef-0310-8abb-c4023f1b3aa9
Diffstat (limited to 'src')
-rw-r--r-- | src/request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/request.c b/src/request.c index 5879efef..a48bf48d 100644 --- a/src/request.c +++ b/src/request.c @@ -49,7 +49,7 @@ static int request_check_hostname(server *srv, connection *con, buffer *host) { if (++colon_cnt > 7) { return -1; } - } else if (!light_isxdigit(*c)) { + } else if (!light_isxdigit(*c) && '.' != *c) { return -1; } } |