Bug#607418: nginx: $host variable mis-parses IPv6 literal addresses from HTTP request Host header

2010-12-18 Thread Kartik Mistry
On Sat, Dec 18, 2010 at 1:22 PM, Steven Chamberlain ste...@pyro.eu.org wrote: I'm attaching a patch, tested, that is the simplest solution I can think of.  Colons found between square brackets are now preserved. If a closing square bracket is not found, such as in '[::', this now returns 400

Bug#607418: nginx: $host variable mis-parses IPv6 literal addresses from HTTP request Host header

2010-12-17 Thread Steven Chamberlain
Package: nginx Version: 0.7.67-3 Tags: ipv6 Hello, I've noticed that nginx incorrectly parses IPv6 addresses from the HTTP requests Host header into its '$host' configuration variable. An HTTP request (via IPv4 or IPv5) in the following form: GET / HTTP/1.0 Host: [::1] results in a

Bug#607418: nginx: $host variable mis-parses IPv6 literal addresses from HTTP request Host header

2010-12-17 Thread Steven Chamberlain
Tags: +patch Hi, I'm attaching a patch, tested, that is the simplest solution I can think of. Colons found between square brackets are now preserved. If a closing square bracket is not found, such as in '[::', this now returns 400 Bad Request, in line with the behaviour observed in Apache. At