aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2010-04-27 16:54:25 +0000
committercorvid <corvid@lavabit.com>2010-04-27 16:54:25 +0000
commit1702b92d3ba126bd5111c292e436d822b417d45c (patch)
tree5be91c4fd07d816fc07f3bc5837569475606a0b3
parent5425d6324eef961e375ef4109445bdce8dba5f6c (diff)
filter allow if nohost -> nohost
-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.