path: root/content/urldb.h
diff options
authorJohn Mark Bell <>2008-01-17 20:00:55 +0000
committerJohn Mark Bell <>2008-01-17 20:00:55 +0000
commite5e2eb09f67604fa87c7d95007be36db9d88b650 (patch)
treedd35b48b58d468942fedfa2237603ab78c3816cc /content/urldb.h
parent2fa8e656a1f42e064266adfe89d9ce3813790dd4 (diff)
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
Diffstat (limited to 'content/urldb.h')
1 files changed, 1 insertions, 0 deletions
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 */