diff options
author | corvid <corvid@lavabit.com> | 2010-04-20 19:40:39 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-04-20 19:40:39 +0000 |
commit | b6336662350d0cc14bfc1172126b04cf8190df47 (patch) | |
tree | 8059ed6466f931c28e59251b7edd4df64dca7303 | |
parent | 51b8093583877e75ad1364cc1d1cca577d1af66e (diff) |
no-host is "", not NULL
-rw-r--r-- | src/capi.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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 |