1
0
Fork 0

URL-encode dollar signs to work around bad proxy failures

pull/4431/head
Jordi Boggiano 2015-09-20 18:26:23 +01:00
parent 1e8d7255b7
commit ed95448523
1 changed files with 5 additions and 0 deletions

View File

@ -584,6 +584,11 @@ class ComposerRepository extends ArrayRepository
$filename = $this->baseUrl.'/'.$filename;
}
// url-encode $ signs in URLs as bad proxies choke on them
if ($pos = strpos($filename, '$')) {
$filename = substr($filename, 0, $pos) . '%24' . substr($filename, $pos+1);
}
$retries = 3;
while ($retries--) {
try {