aboutsummaryrefslogtreecommitdiff
path: root/src/capi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/capi.c')
-rw-r--r--src/capi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/capi.c b/src/capi.c
index 3fdb57fd..b825bb7d 100644
--- a/src/capi.c
+++ b/src/capi.c
@@ -380,7 +380,8 @@ static bool_t Capi_filters_allow(const DilloUrl *wanted,
*req_suffix,
*want_suffix;
if (want_host[0] == '\0') {
- ret = dStrcasecmp(URL_SCHEME(wanted), "data") ? FALSE : TRUE;
+ ret = (req_host[0] == '\0' ||
+ !dStrcasecmp(URL_SCHEME(wanted), "data")) ? TRUE : FALSE;
} else {
/* This will regard "www.dillo.org" and "www.dillo.org." as
* different, but it doesn't seem worth caring about.