Ignore scheme when performing partial match
svn path=/trunk/netsurf/; revision=2535
This commit is contained in:
parent
e5912fedd1
commit
faf76f5f5f
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue