Skip to content

Commit

Permalink
Fix originUrl in FileDownloader, refs composer#423
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Oct 19, 2012
1 parent a28d53d commit fa3d6c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Composer/Downloader/FileDownloader.php
Expand Up @@ -70,7 +70,7 @@ public function download(PackageInterface $package, $path)
$processUrl = $this->processUrl($package, $url);

try {
$this->rfs->copy($package->getSourceUrl(), $processUrl, $fileName);
$this->rfs->copy(parse_url($processUrl, PHP_URL_HOST), $processUrl, $fileName);

if (!file_exists($fileName)) {
throw new \UnexpectedValueException($url.' could not be saved to '.$fileName.', make sure the'
Expand Down

0 comments on commit fa3d6c7

Please sign in to comment.