corrected call to Domain::triggerLetsEncryptCSRForAliasDestinationDomain only if aliasdomain is a valid id; validate registration-date and termination-date only if given
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -1133,7 +1133,9 @@ class SubDomains extends ApiCommand implements ResourceEntity
|
||||
}
|
||||
}
|
||||
|
||||
Domain::triggerLetsEncryptCSRForAliasDestinationDomain($result['aliasdomain'], $this->logger());
|
||||
if ((int)$result['aliasdomain'] !== 0) {
|
||||
Domain::triggerLetsEncryptCSRForAliasDestinationDomain($result['aliasdomain'], $this->logger());
|
||||
}
|
||||
|
||||
// delete domain from table
|
||||
$stmt = Database::prepare("
|
||||
|
||||
Reference in New Issue
Block a user