1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 08:40:09 +01:00

Update Site.php

This commit is contained in:
jasper-ter-veen
2017-12-20 16:54:35 +01:00
committed by GitHub
parent 06fc109d43
commit 117a937638

View File

@@ -85,7 +85,7 @@ function getCertificates($path)
return collect($this->files->scanDir($path))->filter(function ($value, $key) {
return ends_with($value, '.crt');
})->map(function ($cert) {
return substr($cert, 0, strripos($cert, '.', -4));
return substr($cert, 0, strripos($cert, '.', -5));
})->flip();
}