1
0
Fork 0

only urlencode $ if filename is not local

pull/4454/head
Rob Bast 2015-09-28 10:38:16 +02:00
parent 15face5432
commit e491b72a8c
1 changed files with 1 additions and 1 deletions

View File

@ -585,7 +585,7 @@ class ComposerRepository extends ArrayRepository
}
// url-encode $ signs in URLs as bad proxies choke on them
if ($pos = strpos($filename, '$')) {
if ($pos = strpos($filename, '$') && preg_match('{^https?://.*}i', $filename)) {
$filename = substr($filename, 0, $pos) . '%24' . substr($filename, $pos+1);
}