From a552ea878e415864b9450bd17b7c1f22b277ad6f Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 17 Oct 2021 11:48:40 +0200 Subject: [PATCH] avoid undefined index of 'wwwserveralias' field if issueing/renewing lets encrypt certificate for froxlor-hostname Signed-off-by: Michael Kaufmann --- lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php b/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php index 686d4420..9b3938d6 100644 --- a/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php +++ b/lib/Froxlor/Cron/Http/LetsEncrypt/AcmeSh.php @@ -131,7 +131,8 @@ class AcmeSh extends \Froxlor\Cron\FroxlorCron 'ssl_key_file' => null, 'ssl_ca_file' => null, 'ssl_csr_file' => null, - 'id' => null + 'id' => null, + 'wwwserveralias' => 0 ); // add to queue @@ -165,7 +166,8 @@ class AcmeSh extends \Froxlor\Cron\FroxlorCron 'ssl_key_file' => is_array($renew_froxlor) ? $renew_froxlor['ssl_key_file'] : null, 'ssl_ca_file' => is_array($renew_froxlor) ? $renew_froxlor['ssl_ca_file'] : null, 'ssl_csr_file' => is_array($renew_froxlor) ? $renew_froxlor['ssl_csr_file'] : null, - 'id' => is_array($renew_froxlor) ? $renew_froxlor['id'] : null + 'id' => is_array($renew_froxlor) ? $renew_froxlor['id'] : null, + 'wwwserveralias' => 0 ); $renew_domains[] = $certrow; }