From faf76f5f5fdb2f712cca6cf969556f9c7ed947f1 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 15 Apr 2006 18:57:57 +0000 Subject: Ignore scheme when performing partial match svn path=/trunk/netsurf/; revision=2535 --- content/urldb.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'content/urldb.c') diff --git a/content/urldb.c b/content/urldb.c index 179a08679..a803f5727 100644 --- a/content/urldb.c +++ b/content/urldb.c @@ -1061,12 +1061,17 @@ void urldb_iterate_partial(const char *prefix, { char host[256]; char buf[260]; /* max domain + "www." */ - const char *slash; + const char *slash, *scheme_sep; struct search_node *tree; const struct host_part *h; assert(prefix && callback); + /* strip scheme */ + scheme_sep = strstr(prefix, "://"); + if (scheme_sep) + prefix = scheme_sep + 3; + slash = strchr(prefix, '/'); if (*prefix >= '0' && *prefix <= '9') -- cgit v1.2.3