1
0
Fork 0

Trim query strings from dist filenames, fixes #1087

pull/1040/merge
Jordi Boggiano 2012-09-08 14:08:19 +02:00
parent c14826dd1e
commit d3d35f24a1
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/**