1
0
Fork 0

Merge pull request #4454 from alcohol/urlencode-urls-only

only urlencode $ if filename is not local
pull/4462/head
Jordi Boggiano 2015-09-28 10:38:16 +01:00
commit c41079192f
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 // 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); $filename = substr($filename, 0, $pos) . '%24' . substr($filename, $pos+1);
} }