other stuff

This commit is contained in:
2018-03-23 12:31:46 +01:00
parent 2c7502485b
commit 2ab6b9f6f3
5 changed files with 6 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ if ($action == 'add_record' && ! empty($_POST)) {
$errors[] = $lng['error']['domain_nopunycode'];
} else {
$record = $idna_convert->encode($record);
if ($type != 'SRV' && $type != 'TXT') {
if ($type != 'SRV' && $type != 'TXT' && $type != "CNAME" ) {
$check_dom = $record . '.example.com';
if (! validateDomain($check_dom)) {
$errors[] = sprintf($lng['error']['subdomainiswrong'], $idna_convert->decode($record));