From e8290de904d68a5438d9ca4327d9eaa0be7409a4 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Mon, 2 Feb 2004 23:38:02 +0000 Subject: [project @ 2004-02-02 23:38:02 by jmb] Fix issues highlighted by teoma.com svn path=/import/netsurf/; revision=531 --- content/fetch.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'content') diff --git a/content/fetch.c b/content/fetch.c index 97e0473b8..ac47b4a46 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -613,6 +613,7 @@ bool fetch_process_headers(struct fetch *f) { long http_code; const char *type; + char *temp; CURLcode code; f->had_headers = true; @@ -623,6 +624,9 @@ bool fetch_process_headers(struct fetch *f) /* handle HTTP redirects (3xx response codes) */ if (300 <= http_code && http_code < 400 && f->location != 0) { + temp = curl_unescape(f->location, strlen(f->location)); + xfree(f->location); + f->location = temp; LOG(("FETCH_REDIRECT, '%s'", f->location)); f->callback(FETCH_REDIRECT, f->p, f->location, 0); return true; -- cgit v1.2.3