summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--content/urldb.c7
1 files changed, 6 insertions, 1 deletions
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')