From 6b1ae648b4feb1cb1e06cedbb89269c8f86dd417 Mon Sep 17 00:00:00 2001 From: Leonardo Pedretti Date: Thu, 23 Jan 2020 11:59:28 -0300 Subject: [PATCH] Fixed the case that the spf record is not inserted with it's quotes, and so the condition fails and 2 spf records are inserted in the domain --- lib/Froxlor/Dns/Dns.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Froxlor/Dns/Dns.php b/lib/Froxlor/Dns/Dns.php index 2bf9c371..ba8518a9 100644 --- a/lib/Froxlor/Dns/Dns.php +++ b/lib/Froxlor/Dns/Dns.php @@ -160,7 +160,7 @@ class Dns // unset special CAA required-entry unset($required_entries[$entry['type']][md5("@CAA@")]); } - if (Settings::Get('spf.use_spf') == '1' && $entry['type'] == 'TXT' && $entry['record'] == '@' && strtolower(substr($entry['content'], 0, 7)) == '"v=spf1') { + if (Settings::Get('spf.use_spf') == '1' && $entry['type'] == 'TXT' && $entry['record'] == '@' && (strtolower(substr($entry['content'], 0, 7)) == '"v=spf1' || strtolower(substr($entry['content'], 0, 6)) == 'v=spf1') ) { // unset special spf required-entry unset($required_entries[$entry['type']][md5("@SPF@")]); }