From e5e2eb09f67604fa87c7d95007be36db9d88b650 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 17 Jan 2008 20:00:55 +0000 Subject: Work on cookies to bring our behaviour closer to the spec and other browsers: + Improve handling of quoted cookies -- now processes nested quotes correctly + Improve cookie output -- now knows which version it's outputting for and processes things appropriately + Add assertion that we're dealing with a domain cookie in the case where the cookie domain and URL host part don't match during validation. + Tidy up fix for broken domain cookie setting -- it's now less confusing to read. + Preserve cookie value quoting, regardless of its necessity. + Modify Cookie file format to save value_was_quoted flag -- version number bumped to 101. + Add more testcases. svn path=/trunk/netsurf/; revision=3708 --- content/urldb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'content/urldb.h') diff --git a/content/urldb.h b/content/urldb.h index 85f4d9e85..d7e485d3d 100644 --- a/content/urldb.h +++ b/content/urldb.h @@ -44,6 +44,7 @@ struct url_data { struct cookie_data { const char *name; /**< Cookie name */ const char *value; /**< Cookie value */ + const char value_was_quoted; /**< Value was quoted in Set-Cookie: */ const char *comment; /**< Cookie comment */ const bool domain_from_set; /**< Domain came from Set-Cookie: header */ const char *domain; /**< Domain */ -- cgit v1.2.3