Error to add SPF to DNS | function split() dns_spf_edit.php:166
Ubuntu 16.04 php7
When I try to add an SPF record to the DNS the following error occurs:
mod_fcgid: stderr: PHP Fatal error: Uncaught Error: Call to undefined function split() in /usr/local/ispconfig/interface/web/dns/dns_spf_edit.php:166, referer: https://xxxx.xx:8080/index.php
and the record is not created.
From what I saw, the "split()" no longer exists in php7, I changed this function by "explode()" and seems to have worked.