From d0a3ad4ef336757aef28a56751888d784b629f2f Mon Sep 17 00:00:00 2001 From: Florian Schaal <florian@schaal-24.de> Date: Sat, 14 May 2016 02:06:23 -0400 Subject: [PATCH] Fixes: #3899 --- interface/web/dns/dns_spf_edit.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/web/dns/dns_spf_edit.php b/interface/web/dns/dns_spf_edit.php index ba770a9cfa..ca109272d8 100644 --- a/interface/web/dns/dns_spf_edit.php +++ b/interface/web/dns/dns_spf_edit.php @@ -163,7 +163,7 @@ class page_action extends tform_actions { } $spf_ip = trim($this->dataRecord['spf_ip']); if (!empty($spf_ip)) { - $rec = split(' ', $spf_ip); + $rec = explode(' ', $spf_ip); foreach ($rec as $ip) { $temp_ip = explode('/', $ip); if (filter_var($temp_ip[0], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) { @@ -187,7 +187,7 @@ class page_action extends tform_actions { } $spf_hostname = trim($this->dataRecord['spf_hostname']); if (!empty($spf_hostname)) { - $rec = split(' ', $spf_hostname); + $rec = explode(' ', $spf_hostname); foreach ($rec as $hostname) { if (preg_match('/^[a-zA-Z0-9\\.\\-\\*]{0,64}$/', $hostname)) $spf_record[] = 'a:' . $hostname; @@ -200,7 +200,7 @@ class page_action extends tform_actions { } $spf_domain = trim($this->dataRecord['spf_domain']); if (!empty($spf_domain)) { - $rec = split(' ', $spf_domain); + $rec = explode(' ', $spf_domain); foreach ($rec as $domain) { if (preg_match('/^[_a-zA-Z0-9\\.\\-\\*]{0,64}$/', $domain)) $spf_record[] = 'include:' . $domain; -- GitLab