From 40bac34ffd6d0e0483defd0ffe233648e0e7faa6 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sun, 11 Apr 2010 14:01:11 +0000 Subject: Bail out if we're redirected to an URL we can't handle svn path=/trunk/netsurf/; revision=10351 --- content/llcache.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'content') diff --git a/content/llcache.c b/content/llcache.c index 6fdcdf859..b09f1bab6 100644 --- a/content/llcache.c +++ b/content/llcache.c @@ -1642,7 +1642,11 @@ nserror llcache_fetch_redirect(llcache_object *object, const char *target, /** \todo Ensure that redirects to file:/// don't happen? */ - /** \todo What happens if we've no way of handling this URL? */ + /* Bail out if we've no way of handling this URL */ + if (fetch_can_fetch(url) == false) { + free(url); + return NSERROR_OK; + } /** \todo All the magical processing for the various redirect types */ if (http_code == 301 || http_code == 302 || http_code == 303) { -- cgit v1.2.3