Prevent enabling let's encrypt for wildcard - domains

Signed-off-by: Florian Aders <eleras@froxlor.org>
This commit is contained in:
Florian Aders
2016-01-30 14:46:00 +01:00
parent c189ad759b
commit d87fc4c717

View File

@@ -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';
}