URL-encode dollar signs to work around bad proxy failures
parent
1e8d7255b7
commit
ed95448523
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue