From 07309888d66c608977b31955215503dc355c7d33 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 27 Nov 2011 14:14:36 +0000 Subject: return; Fix bug #3442642: allow scheme-specific fetchers to have a say in whether an URL can be fetched. svn path=/trunk/netsurf/; revision=13182 --- content/fetchers/file.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'content/fetchers/file.c') diff --git a/content/fetchers/file.c b/content/fetchers/file.c index f30637c87..e3bb63ea8 100644 --- a/content/fetchers/file.c +++ b/content/fetchers/file.c @@ -112,6 +112,11 @@ static void fetch_file_finalise(lwc_string *scheme) { } +static bool fetch_file_can_fetch(const nsurl *url) +{ + return true; +} + /** callback to set up a file fetch context. */ static void * fetch_file_setup(struct fetch *fetchh, @@ -645,6 +650,7 @@ void fetch_file_register(void) fetch_add_fetcher(scheme, fetch_file_initialise, + fetch_file_can_fetch, fetch_file_setup, fetch_file_start, fetch_file_abort, -- cgit v1.2.3