From e17a2eff4a89a665ab6ea0ad6f68c4a4735c1992 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Sat, 6 Aug 2016 07:39:37 +0200 Subject: [PATCH] fix auto-generated dns zone when using multiple MX records and superfluous whitespace, fixes #1646 Signed-off-by: Michael Kaufmann (d00p) --- lib/functions/dns/function.createDomainZone.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/functions/dns/function.createDomainZone.php b/lib/functions/dns/function.createDomainZone.php index 67b95335..938d7200 100644 --- a/lib/functions/dns/function.createDomainZone.php +++ b/lib/functions/dns/function.createDomainZone.php @@ -205,6 +205,7 @@ function createDomainZone($domain_id, $froxlorhostname = false, $isMainButSubTo if (Settings::Get('system.mxservers') != '') { $mxservers = explode(',', Settings::Get('system.mxservers')); foreach ($mxservers as $mxserver) { + $mxserver = trim($mxserver); if (substr($mxserver, - 1, 1) != '.') { $mxserver .= '.'; }