Skip to content

Commit d0a3ad4

Browse files
author
Florian Schaal
committed
Fixes: #3899
1 parent dda6416 commit d0a3ad4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interface/web/dns/dns_spf_edit.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ function onSubmit() {
163163
}
164164
$spf_ip = trim($this->dataRecord['spf_ip']);
165165
if (!empty($spf_ip)) {
166-
$rec = split(' ', $spf_ip);
166+
$rec = explode(' ', $spf_ip);
167167
foreach ($rec as $ip) {
168168
$temp_ip = explode('/', $ip);
169169
if (filter_var($temp_ip[0], FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
@@ -187,7 +187,7 @@ function onSubmit() {
187187
}
188188
$spf_hostname = trim($this->dataRecord['spf_hostname']);
189189
if (!empty($spf_hostname)) {
190-
$rec = split(' ', $spf_hostname);
190+
$rec = explode(' ', $spf_hostname);
191191
foreach ($rec as $hostname) {
192192
if (preg_match('/^[a-zA-Z0-9\\.\\-\\*]{0,64}$/', $hostname))
193193
$spf_record[] = 'a:' . $hostname;
@@ -200,7 +200,7 @@ function onSubmit() {
200200
}
201201
$spf_domain = trim($this->dataRecord['spf_domain']);
202202
if (!empty($spf_domain)) {
203-
$rec = split(' ', $spf_domain);
203+
$rec = explode(' ', $spf_domain);
204204
foreach ($rec as $domain) {
205205
if (preg_match('/^[_a-zA-Z0-9\\.\\-\\*]{0,64}$/', $domain))
206206
$spf_record[] = 'include:' . $domain;

0 commit comments

Comments
 (0)