Selaa lähdekoodia

typo in var name

Miraty 1 vuosi sitten
vanhempi
commit
3636e181c2
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      pg-act/ns/zone-add.php

+ 1 - 1
pg-act/ns/zone-add.php

@@ -11,7 +11,7 @@ if ($parent_authoritatives === [])
 foreach ($parent_authoritatives as $parent_authoritative)
 foreach ($parent_authoritatives as $parent_authoritative)
 	checkAbsoluteDomainFormat($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('/^(?<salt>[0-9a-f]{8})-(?<hash>[0-9a-f]{32})\._domain-verification\.' . preg_quote(SERVER_NAME, '/') . '\.$/Dm', implode(LF, $ns_records), $matches) !== 1)
 if (preg_match('/^(?<salt>[0-9a-f]{8})-(?<hash>[0-9a-f]{32})\._domain-verification\.' . preg_quote(SERVER_NAME, '/') . '\.$/Dm', implode(LF, $ns_records), $matches) !== 1)
 	output(403, _('NS authentication record not found.'));
 	output(403, _('NS authentication record not found.'));