1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 08:30:07 +01:00

Ignore parked paths that are not directory when getting parked sites

This commit is contained in:
James Barnard
2019-10-21 22:56:10 +01:00
parent 7011629b41
commit cb8d971097
2 changed files with 40 additions and 0 deletions

View File

@@ -198,6 +198,8 @@ function getSites($path, $certs)
$realPath = $this->files->realpath($sitePath);
}
return [$site => $realPath];
})->filter(function ($path) {
return $this->files->isDir($path);
})->map(function ($path, $site) use ($certs, $config) {
$secured = $certs->has($site);
$url = ($secured ? 'https': 'http').'://'.$site.'.'.$config['tld'];