ns: allow IDN verfication

This commit is contained in:
Miraty 2022-10-09 23:33:45 +02:00
parent 938dbe4040
commit 9ba515cd89
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ if (processForm()) {
foreach ($parentAuthoritatives as $parentAuthoritative)
checkAbsoluteDomainFormat($parentAuthoritative);
exec(CONF['ns']['kdig_path'] . ' ' . $_POST['domain'] . " NS @" . $parentAuthoritatives[0], $results);
exec(CONF['ns']['kdig_path'] . ' ' . $_POST['domain'] . ' NS @' . $parentAuthoritatives[0] . ' +noidn', $results);
if (preg_match('/\n' . preg_quote($_POST['domain'], '/') . '[\t ]+[0-9]{1,8}[\t ]+IN[\t ]+NS[\t ]+([0-9a-f]{8})-([0-9a-f]{32})\.auth-owner.+\n/', implode("\n", $results), $matches) !== 1)
output(403, 'Enregistrement d\'authentification introuvable');