1
0
Fork 0

Fixing empty VCS URL for file:/// paths with spaces

realpath() returns FALSE for fFile paths with URL encoding like %20 for
spaces.
pull/5845/head
Mark Ingman 2016-11-03 17:37:14 +00:00
parent 4dd2e633fd
commit 98ba6d8bf4
1 changed files with 2 additions and 0 deletions

View File

@ -73,6 +73,8 @@ abstract class VcsDownloader implements DownloaderInterface, ChangeReportInterfa
if (0 === strpos($url, $needle)) {
$url = substr($url, strlen($needle));
}
// realpath() will also not understand %20 etc
$url = rawurldecode($url);
$url = realpath($url);
}
$this->doDownload($package, $path, $url);