From fa3d6c7ce24c754a5a849746a176e1d483f49078 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 19 Oct 2012 12:03:13 +0200 Subject: [PATCH] Fix originUrl in FileDownloader, refs #423 --- src/Composer/Downloader/FileDownloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Composer/Downloader/FileDownloader.php b/src/Composer/Downloader/FileDownloader.php index 8a47aef58..b2d55bb4f 100644 --- a/src/Composer/Downloader/FileDownloader.php +++ b/src/Composer/Downloader/FileDownloader.php @@ -70,7 +70,7 @@ class FileDownloader implements DownloaderInterface $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'