summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2012-10-05 19:06:24 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2012-10-05 19:06:24 +0100
commit63adec13153f08417b4b68c8e2780dd12e175bf1 (patch)
tree9a84e180966958574c3eba111e073b6eb862f6bf
parent346b061d7be14257c14529dac4714ae39a9396ca (diff)
downloadnetsurf-63adec13153f08417b4b68c8e2780dd12e175bf1.tar.gz
netsurf-63adec13153f08417b4b68c8e2780dd12e175bf1.tar.bz2
Add comment.
-rw-r--r--content/urldb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/urldb.c b/content/urldb.c
index ff640b15c..6776ebe1a 100644
--- a/content/urldb.c
+++ b/content/urldb.c
@@ -2447,6 +2447,9 @@ char *urldb_get_cookie(const char *url)
assert(url != NULL);
+ /* The URL must exist in the db in order to find relevant cookies, since
+ * we search up the tree from the URL node, and cookies from further
+ * up also apply. */
urldb_add_url(url);
p = urldb_find_url(url);