diff options
author | corvid <corvid@lavabit.com> | 2010-04-27 16:54:25 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2010-04-27 16:54:25 +0000 |
commit | 1702b92d3ba126bd5111c292e436d822b417d45c (patch) | |
tree | 5be91c4fd07d816fc07f3bc5837569475606a0b3 | |
parent | 5425d6324eef961e375ef4109445bdce8dba5f6c (diff) |
filter allow if nohost -> nohost
-rw-r--r-- | src/capi.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |