summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2011-05-10 15:49:25 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2011-05-10 15:49:25 +0200
commitc34ea12ad509cb34c954ed574a301c3cbede55ec (patch)
treecabd9660a9e9ac793b29f5cd2c6ac703dd93a6ab /methods
parent4992469e453490e4c104a1b6021e48c725c499b8 (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.cc4
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 */