Trim query strings from dist filenames, fixes #1087
parent
c14826dd1e
commit
d3d35f24a1
|
@ -117,7 +117,7 @@ class FileDownloader implements DownloaderInterface
|
|||
*/
|
||||
protected function getFileName(PackageInterface $package, $path)
|
||||
{
|
||||
return $path.'/'.pathinfo($package->getDistUrl(), PATHINFO_BASENAME);
|
||||
return $path.'/'.pathinfo(parse_url($package->getDistUrl(), PHP_URL_PATH), PATHINFO_BASENAME);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue