Skip to content

Commit 8fa22c5

Browse files
committed
Merge branch 'master' of git://github.com/jasper-ter-veen/valet into jasper-ter-veen-master
2 parents 5df7ed7 + 117a937 commit 8fa22c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/Valet/Site.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function getCertificates($path)
8585
return collect($this->files->scanDir($path))->filter(function ($value, $key) {
8686
return ends_with($value, '.crt');
8787
})->map(function ($cert) {
88-
return substr($cert, 0, -8);
88+
return substr($cert, 0, strripos($cert, '.', -5));
8989
})->flip();
9090
}
9191

0 commit comments

Comments
 (0)