changeset 1652:85709f0b589c

filter allow data: uri
author corvid <corvid@lavabit.com>
date Tue, 20 Apr 2010 19:23:21 +0000
parents cef38874b78f
children 7a992ce58091
files src/capi.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/capi.c	Tue Apr 20 18:52:43 2010 +0000
+++ b/src/capi.c	Tue Apr 20 19:23:21 2010 +0000
@@ -381,8 +381,10 @@
                        *want_suffix;
             if (!req_host && !want_host) {
                ret = TRUE;
-            } else if (!req_host || !want_host) {
+            } else if (!req_host) {
                ret = FALSE;
+            } else if (!want_host) {
+               ret = dStrcasecmp(URL_SCHEME(wanted), "data") ? FALSE : TRUE;
             } else {
                /* This will regard "www.dillo.org" and "www.dillo.org." as
                 * different, but it doesn't seem worth caring about.