From f4a8466316036ec433870c2860370e4e9485a2d5 Mon Sep 17 00:00:00 2001 From: Florian Schaal <florian@schaal-24.de> Date: Tue, 16 Dec 2014 16:27:51 +0100 Subject: [PATCH] allow SPF-includes like_spf.google.com --- interface/web/dns/dns_spf_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interface/web/dns/dns_spf_edit.php b/interface/web/dns/dns_spf_edit.php index 32955c4b8e..e95227ab39 100644 --- a/interface/web/dns/dns_spf_edit.php +++ b/interface/web/dns/dns_spf_edit.php @@ -202,7 +202,7 @@ class page_action extends tform_actions { if (!empty($spf_domain)) { $rec = split(' ', $spf_domain); foreach ($rec as $domain) { - if (preg_match('/^[a-zA-Z0-9\\.\\-\\*]{0,64}$/', $domain)) + if (preg_match('/_^[a-zA-Z0-9\\.\\-\\*]{0,64}$/', $domain)) $spf_record[] = 'include:' . $domain; else { if (isset($app->tform->errorMessage )) $app->tform->errorMessage .= '<br/>' . $app->tform->wordbook["spf_invalid_domain_txt"]. $domain; -- GitLab