]> granicus.if.org Git - curl/commit
Curl_cookie_add: handle IPv6 hosts
authorDaniel Stenberg <daniel@haxx.se>
Tue, 21 May 2013 21:28:59 +0000 (23:28 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 21 May 2013 21:28:59 +0000 (23:28 +0200)
commit85b9dc80232d1d7d48ee4dea6db5a2263ee68efd
treea772ecc792a739a996d7b37b6e49a43cdb69e5f2
parent7d4d4892d8cddd14ab48db9991db893035a7a938
Curl_cookie_add: handle IPv6 hosts

1 - don't skip host names with a colon in them in an attempt to bail out
on HTTP headers in the cookie file parser. It was only a shortcut anyway
and trying to parse a file with HTTP headers will still be handled, only
slightly slower.

2 - don't skip domain names based on number of dots. The original
netscape cookie spec had this oddity mentioned and while our code
decreased the check to only check for two, the existing cookie spec has
no such dot counting required.

Bug: http://curl.haxx.se/bug/view.cgi?id=1221
Reported-by: Stefan Neis
lib/cookie.c