Hello,
The following issues were found:
1. TXT records with DKIM are not correctly parsed by PHP Bind Zone File Parser
2. TXT records with DMARC are not correctly parsed by PHP Bind Zone File Parser
They contain ; and are treated as comments, the line which makes issues:
$line = preg_replace('/(\s+)?(;|#)([\s\S]+)?/i', '', $line);
3. Email specified in DMARC records
[email protected] becomes emaildomain.comdomain.com because @ gets replaced by an origin:
$record['data'] = str_replace("@", $this->origin, $record['data']);
which is also wrong.
I'm wondering am I the only one who found these issues? And can it be fixed by the package author? Or should I suggest my fix?
Regards,
Alex.