From 7ea1de2a9221d2c30d19e492fe8a456d56a652d8 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Fri, 20 May 2016 16:21:55 +0200 Subject: [PATCH] allow defined non-existing entry for SRV target-value for real now, i guess Signed-off-by: Michael Kaufmann (d00p) --- dns_editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dns_editor.php b/dns_editor.php index 325fe1d7..15687b10 100644 --- a/dns_editor.php +++ b/dns_editor.php @@ -159,7 +159,7 @@ if ($action == 'add_record' && ! empty($_POST)) { $target = substr($target, 0, - 1); } } - if (! validateDomain($target)) { + if ($target != '.' && ! validateDomain($target)) { $errors[] = $lng['error']['dns_srv_needdom']; } else { // check whether there is a CNAME-record for the same resource