diff --git a/src/Composer/Repository/ComposerRepository.php b/src/Composer/Repository/ComposerRepository.php index 632f3a03b..2853a1ea0 100644 --- a/src/Composer/Repository/ComposerRepository.php +++ b/src/Composer/Repository/ComposerRepository.php @@ -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); }