From 8f4da0638e333d62d401879fb914b1f3945e94ae Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Wed, 25 Jan 2017 10:42:18 +0100 Subject: [PATCH] allow underscore in dns labels, fixes #1697 Signed-off-by: Michael Kaufmann (d00p) --- dns_editor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dns_editor.php b/dns_editor.php index 15687b10..98e3a373 100644 --- a/dns_editor.php +++ b/dns_editor.php @@ -57,12 +57,16 @@ if ($action == 'add_record' && ! empty($_POST)) { $errors[] = $lng['error']['domain_nopunycode']; } else { $record = $idna_convert->encode($record); + /* + * see https://redmine.froxlor.org/issues/1697 + * if ($type != 'SRV' && $type != 'TXT') { $check_dom = $record . '.example.com'; if (! validateDomain($check_dom)) { $errors[] = sprintf($lng['error']['subdomainiswrong'], $idna_convert->decode($record)); } } + */ if (strlen($record) > 63) { $errors[] = $lng['error']['dns_record_toolong']; }