1
0
Fork 0

Fix originUrl in FileDownloader, refs #423

pull/1191/merge
Jordi Boggiano 2012-10-19 12:03:13 +02:00
parent a28d53d4c0
commit fa3d6c7ce2
1 changed files with 1 additions and 1 deletions

View File

@ -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'