Skip to content
Snippets Groups Projects
Commit d0a3ad4e authored by Florian Schaal's avatar Florian Schaal
Browse files

Fixes: #3899

parent dda64163
No related branches found
No related tags found
No related merge requests found
...@@ -163,7 +163,7 @@ class page_action extends tform_actions { ...@@ -163,7 +163,7 @@ class page_action extends tform_actions {
} }
$spf_ip = trim($this->dataRecord['spf_ip']); $spf_ip = trim($this->dataRecord['spf_ip']);
if (!empty($spf_ip)) { if (!empty($spf_ip)) {
$rec = split(' ', $spf_ip); $rec = explode(' ', $spf_ip);
foreach ($rec as $ip) { foreach ($rec as $ip) {
$temp_ip = explode('/', $ip); $temp_ip = explode('/', $ip);
if (filter_var($temp_ip[0], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) { if (filter_var($temp_ip[0], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
...@@ -187,7 +187,7 @@ class page_action extends tform_actions { ...@@ -187,7 +187,7 @@ class page_action extends tform_actions {
} }
$spf_hostname = trim($this->dataRecord['spf_hostname']); $spf_hostname = trim($this->dataRecord['spf_hostname']);
if (!empty($spf_hostname)) { if (!empty($spf_hostname)) {
$rec = split(' ', $spf_hostname); $rec = explode(' ', $spf_hostname);
foreach ($rec as $hostname) { foreach ($rec as $hostname) {
if (preg_match('/^[a-zA-Z0-9\\.\\-\\*]{0,64}$/', $hostname)) if (preg_match('/^[a-zA-Z0-9\\.\\-\\*]{0,64}$/', $hostname))
$spf_record[] = 'a:' . $hostname; $spf_record[] = 'a:' . $hostname;
...@@ -200,7 +200,7 @@ class page_action extends tform_actions { ...@@ -200,7 +200,7 @@ class page_action extends tform_actions {
} }
$spf_domain = trim($this->dataRecord['spf_domain']); $spf_domain = trim($this->dataRecord['spf_domain']);
if (!empty($spf_domain)) { if (!empty($spf_domain)) {
$rec = split(' ', $spf_domain); $rec = explode(' ', $spf_domain);
foreach ($rec as $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; $spf_record[] = 'include:' . $domain;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment