From e95a9178123904df01538d54433f9c170f9a6794 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Sun, 4 Jun 2017 11:29:21 +0200 Subject: [PATCH] allow non fqdn CNAME entries (froxlor appends zone's domain automatically if there's no trailing dot), fixes #434 Signed-off-by: Michael Kaufmann (d00p) --- dns_editor.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dns_editor.php b/dns_editor.php index 0d6b437e..98a4d683 100644 --- a/dns_editor.php +++ b/dns_editor.php @@ -128,6 +128,9 @@ if ($action == 'add_record' && ! empty($_POST)) { if (substr($content, - 1) == '.') { // remove it for checks $content = substr($content, 0, - 1); + } else { + // add domain name + $content .= '.' . $domain; } if (! validateDomain($content)) { $errors[] = $lng['error']['dns_cname_invaliddom'];