diff options
author | corvid <corvid@lavabit.com> | 2010-04-06 02:27:54 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-04-06 02:27:54 +0000 |
commit | 6f3fa9135b34e14c5330cb563b136e915d91ecf9 (patch) | |
tree | c27e6bd8327c305e062e225ea1e5200c86425db6 /src/web.cc | |
parent | d632e3c9d3a9fb6e3fd2dd7b28edca99012d7782 (diff) |
filter automatic requests
same_domain option in preference so that spying on users isn't so easy.
Diffstat (limited to 'src/web.cc')
-rw-r--r-- | src/web.cc | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -103,12 +103,13 @@ int a_Web_dispatch_by_type (const char *Type, DilloWeb *Web, /* * Allocate and set safe values for a DilloWeb structure */ -DilloWeb* a_Web_new(const DilloUrl *url) +DilloWeb* a_Web_new(const DilloUrl *url, const DilloUrl *requester) { DilloWeb *web= dNew(DilloWeb, 1); _MSG(" a_Web_new: ValidWebs ==> %d\n", dList_length(ValidWebs)); web->url = a_Url_dup(url); + web->requester = a_Url_dup(requester); web->bw = NULL; web->flags = 0; web->Image = NULL; @@ -136,6 +137,7 @@ void a_Web_free(DilloWeb *web) { if (!web) return; a_Url_free(web->url); + a_Url_free(web->requester); a_Image_unref(web->Image); dFree(web->filename); dList_remove(ValidWebs, (void *)web); |