From 117a93763827f46dab1a676a63c1d47797c918d4 Mon Sep 17 00:00:00 2001 From: jasper-ter-veen <3184775+jasper-ter-veen@users.noreply.github.com> Date: Wed, 20 Dec 2017 16:54:35 +0100 Subject: [PATCH] Update Site.php --- cli/Valet/Site.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/Valet/Site.php b/cli/Valet/Site.php index a7ad779..a6cf4c1 100644 --- a/cli/Valet/Site.php +++ b/cli/Valet/Site.php @@ -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(); }