aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/capi.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/capi.c b/src/capi.c
index 23916cc0..3fdb57fd 100644
--- a/src/capi.c
+++ b/src/capi.c
@@ -379,11 +379,7 @@ static bool_t Capi_filters_allow(const DilloUrl *wanted,
*want_host = URL_HOST(wanted),
*req_suffix,
*want_suffix;
- if (!req_host && !want_host) {
- ret = TRUE;
- } else if (!req_host) {
- ret = FALSE;
- } else if (!want_host) {
+ if (want_host[0] == '\0') {
ret = dStrcasecmp(URL_SCHEME(wanted), "data") ? FALSE : TRUE;
} else {
/* This will regard "www.dillo.org" and "www.dillo.org." as