From 3636e181c2ff418515422e237caa7aae7ae3e4a1 Mon Sep 17 00:00:00 2001 From: Miraty Date: Sun, 13 Aug 2023 20:55:50 +0200 Subject: [PATCH] typo in var name --- pg-act/ns/zone-add.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg-act/ns/zone-add.php b/pg-act/ns/zone-add.php index c178548..97d6c98 100644 --- a/pg-act/ns/zone-add.php +++ b/pg-act/ns/zone-add.php @@ -11,7 +11,7 @@ if ($parent_authoritatives === []) foreach ($parent_authoritatives as $parent_authoritative) checkAbsoluteDomainFormat($parent_authoritative); -$ns_records = array_column(kdig(name: $_POST['domain'], type: 'NS', server: (CONF['ns']['local_only_check'] ? CONF['reg']['address'] : $parent_authoritative[0]))['authorityRRs'], 'rdataNS'); +$ns_records = array_column(kdig(name: $_POST['domain'], type: 'NS', server: (CONF['ns']['local_only_check'] ? CONF['reg']['address'] : $parent_authoritatives[0]))['authorityRRs'], 'rdataNS'); if (preg_match('/^(?[0-9a-f]{8})-(?[0-9a-f]{32})\._domain-verification\.' . preg_quote(SERVER_NAME, '/') . '\.$/Dm', implode(LF, $ns_records), $matches) !== 1) output(403, _('NS authentication record not found.'));