diff options
author | corvid <corvid@lavabit.com> | 2010-04-20 19:23:21 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-04-20 19:23:21 +0000 |
commit | 896d1d63a1875fa66c9abf57c9da06d80fd85762 (patch) | |
tree | ea8781a1efd97f84a734f33224b8ff843fd0720b /src | |
parent | 0a052d108747ff051985f138f7c9787879c35517 (diff) |
filter allow data: uri
Diffstat (limited to 'src')
-rw-r--r-- | src/capi.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -381,8 +381,10 @@ static bool_t Capi_filters_allow(const DilloUrl *wanted, *want_suffix; if (!req_host && !want_host) { ret = TRUE; - } else if (!req_host || !want_host) { + } else if (!req_host) { ret = FALSE; + } else if (!want_host) { + ret = dStrcasecmp(URL_SCHEME(wanted), "data") ? FALSE : TRUE; } else { /* This will regard "www.dillo.org" and "www.dillo.org." as * different, but it doesn't seem worth caring about. |