Descriptionnet/http: do not send malformed cookie domain attribute
Malformed domain attributes are not sent in a Set-Cookie header.
Instead the domain attribute is dropped which turns the cookie
into a host-only cookie. This is much safer than dropping characters
from domain attribute.
Domain attributes with a leading dot '.' are still allowed, even
if discouraged by RFC 6265 section 4.1.1.
Fixes issue 6013
Patch Set 1 #Patch Set 2 : diff -r d7db8c804ffa https://code.google.com/p/go/ #Patch Set 3 : diff -r d7db8c804ffa https://code.google.com/p/go/ #
Total comments: 4
Patch Set 4 : diff -r 7064d3304d65 https://code.google.com/p/go/ #MessagesTotal messages: 5
|