From 896d1d63a1875fa66c9abf57c9da06d80fd85762 Mon Sep 17 00:00:00 2001 From: corvid Date: Tue, 20 Apr 2010 19:23:21 +0000 Subject: filter allow data: uri --- src/capi.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/capi.c') diff --git a/src/capi.c b/src/capi.c index cbabbeae..23916cc0 100644 --- a/src/capi.c +++ b/src/capi.c @@ -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. -- cgit v1.2.3