Bail out if we're redirected to an URL we can't handle

svn path=/trunk/netsurf/; revision=10351
This commit is contained in:
John Mark Bell 2010-04-11 14:01:11 +00:00
parent 758190f37b
commit 40bac34ffd
1 changed files with 5 additions and 1 deletions

View File

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