diff options
author | p37sitdu, corvid <devnull@localhost> | 2012-10-03 01:19:45 +0000 |
---|---|---|
committer | p37sitdu, corvid <devnull@localhost> | 2012-10-03 01:19:45 +0000 |
commit | 39ee4950acf53e63f0a8bf8cd7111f7ad282f6bb (patch) | |
tree | dc8779a49e158a5d0e9e4327543f672a41b1ec23 /src/cache.c | |
parent | 78003c727f7eae3a593260941aa4db6627dd1e75 (diff) |
introduce domainrc mechanism
Diffstat (limited to 'src/cache.c')
-rw-r--r-- | src/cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cache.c b/src/cache.c index 97cbc458..4a689833 100644 --- a/src/cache.c +++ b/src/cache.c @@ -30,7 +30,7 @@ #include "capi.h" #include "decode.h" #include "auth.h" - +#include "domain.h" #include "timeout.hh" #include "uicmd.hh" @@ -682,7 +682,7 @@ static void Cache_parse_header(CacheEntry_t *entry) /* 30x: URL redirection */ DilloUrl *location_url = a_Url_new(location_str,URL_STR_(entry->Url)); - if (0) { + if (!a_Domain_permit(entry->Url, location_url)) { /* don't redirect; just show body like usual (if any) */ MSG("Redirection not followed from %s to %s\n", URL_HOST(entry->Url), URL_STR(location_url)); |