diff options
author | David Kalnischkies <kalnischkies@gmail.com> | 2011-05-10 15:49:25 +0200 |
---|---|---|
committer | David Kalnischkies <kalnischkies@gmail.com> | 2011-05-10 15:49:25 +0200 |
commit | c34ea12ad509cb34c954ed574a301c3cbede55ec (patch) | |
tree | cabd9660a9e9ac793b29f5cd2c6ac703dd93a6ab /methods | |
parent | 4992469e453490e4c104a1b6021e48c725c499b8 (diff) |
dequote URL taken from Location in redirects as we will otherwise
quote an already quoted string in the request later (Closes: #602412)
Diffstat (limited to 'methods')
-rw-r--r-- | methods/http.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |