From c34ea12ad509cb34c954ed574a301c3cbede55ec Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Tue, 10 May 2011 15:49:25 +0200 Subject: dequote URL taken from Location in redirects as we will otherwise quote an already quoted string in the request later (Closes: #602412) --- methods/http.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'methods') diff --git a/methods/http.cc b/methods/http.cc index d3e00553c..13f9cbe06 100644 --- a/methods/http.cc +++ b/methods/http.cc @@ -961,12 +961,12 @@ HttpMethod::DealWithHeaders(FetchResult &Res,ServerState *Srv) } else NextURI.clear(); - NextURI.append(Srv->Location); + NextURI.append(DeQuoteString(Srv->Location)); return TRY_AGAIN_OR_REDIRECT; } else { - NextURI = Srv->Location; + NextURI = DeQuoteString(Srv->Location); return TRY_AGAIN_OR_REDIRECT; } /* else pass through for error message */ -- cgit v1.2.3