From d87fc4c717b4b66a42cbedb378923dfa53f9b6c4 Mon Sep 17 00:00:00 2001 From: Florian Aders Date: Sat, 30 Jan 2016 14:46:00 +0100 Subject: [PATCH] Prevent enabling let's encrypt for wildcard - domains Signed-off-by: Florian Aders --- admin_domains.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/admin_domains.php b/admin_domains.php index c897ba01..8bec3e96 100644 --- a/admin_domains.php +++ b/admin_domains.php @@ -565,6 +565,11 @@ if ($page == 'domains' $ssl_ipandports[] = -1; } + // We can't enable let's encrypt for wildcard - domains + if ($serveraliasoption == '0') { + $letsencrypt = 0; + } + if (!preg_match('/^https?\:\/\//', $documentroot)) { if (strstr($documentroot, ":") !== false) { standard_error('pathmaynotcontaincolon'); @@ -1342,6 +1347,11 @@ if ($page == 'domains' $ssl_ipandports[] = -1; } + // We can't enable let's encrypt for wildcard domains + if ($serveraliasoption == '0') { + $letsencrypt = '0'; + } + if (!preg_match('/^https?\:\/\//', $documentroot)) { $documentroot = makeCorrectDir($documentroot); } @@ -1889,6 +1899,7 @@ if ($page == 'domains' $_value = '2'; if ($result['iswildcarddomain'] == '1') { $_value = '0'; + $letsencrypt = 0; } elseif ($result['wwwserveralias'] == '1') { $_value = '1'; }