Skip to content

DNSCheckValidation line 202 code error #387

Open
@philoooooo

Description

@philoooooo

Hello,
On line 202 ->
if (empty($dnsRecord['target']) || $dnsRecord['target'] === '.') {

if record target = 0, empty ->true.

Wouldn't it be better with :
if ((array_key_exists('target',$dnsRecord) && $dnsRecord['target'] == null) || $dnsRecord['target'] === '.') {

?

Thanks
Phil

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions