]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
dequote URL taken from Location in redirects as we will otherwise
[apt.git] / methods / http.cc
index d3e00553cdedf997bf704c9f82081780e1841566..13f9cbe0613a01d4c102961efc6a15248c6343e8 100644 (file)
@@ -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 */