1
0
Fork 0

Trim query string from extension when downloading archives

pull/1718/merge
Jordi Boggiano 2013-03-21 15:30:00 +01:00
parent 61efd2998c
commit 10a7008fdf
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ abstract class ArchiveDownloader extends FileDownloader
*/
protected function getFileName(PackageInterface $package, $path)
{
return rtrim($path.'/'.md5($path.spl_object_hash($package)).'.'.pathinfo($package->getDistUrl(), PATHINFO_EXTENSION), '.');
return rtrim($path.'/'.md5($path.spl_object_hash($package)).'.'.pathinfo(parse_url($package->getDistUrl(), PHP_URL_PATH), PATHINFO_EXTENSION), '.');
}
/**