[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
svn/tags/lighttpd-1.4.30
Stefan Bühler 12 years ago
parent 0f96222e7e
commit b748fb890d

@ -13,6 +13,7 @@ NEWS
* [mod_auth] Fix signedness error in http_auth (fixes #2370, CVE-2011-4362)
* [ssl] count renegotiations to prevent client renegotiations
* [ssl] add option to honor server cipher order (fixes #2364, BEAST attack)
* [core] accept dots in ipv6 addresses in host header (fixes #2359)
- 1.4.29 - 2011-07-03
* Fix mod_proxy waiting for response even if content-length is 0 (fixes #2259)

@ -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;
}
}

Loading…
Cancel
Save