1
0
Fork 0

Merge pull request #2386 from cebe/allow-file-url

added support for file:// url to repository
pull/2397/head
Jordi Boggiano 2013-10-31 13:22:13 -07:00
commit af91b19f5e
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ class ComposerRepository extends ArrayRepository implements StreamableRepository
} }
$urlBits = parse_url($repoConfig['url']); $urlBits = parse_url($repoConfig['url']);
if (empty($urlBits['scheme']) || empty($urlBits['host'])) { if ($urlBits === false || empty($urlBits['scheme'])) {
throw new \UnexpectedValueException('Invalid url given for Composer repository: '.$repoConfig['url']); throw new \UnexpectedValueException('Invalid url given for Composer repository: '.$repoConfig['url']);
} }