Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
5.2.0 Beta1
-
None
Description
http://tools.ietf.org/html/rfc6265#section-4.1.1 specifies that the domain name should be as described in http://tools.ietf.org/html/rfc1034#section-3.5 and http://tools.ietf.org/html/rfc1123#section-2.1 ; the latter RFC relaxes domain names to also contain IP addresses.
Since we call QUrl::toAce() in our cookie implementation, this does not work for IPv6 addresses.
Solution: check whether domain is an IP(v6) address (via QHostAddress::protocol() ?) and if yes, do not call QUrl::toAce().