Ignore scheme when performing partial match

svn path=/trunk/netsurf/; revision=2535
This commit is contained in:
John Mark Bell 2006-04-15 18:57:57 +00:00
parent e5912fedd1
commit faf76f5f5f
1 changed files with 6 additions and 1 deletions

View File

@ -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')