Ver código fonte

ns: allow IDN verfication

Miraty 2 anos atrás
pai
commit
9ba515cd89
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      pages/ns/zone-add.php

+ 1 - 1
pages/ns/zone-add.php

@@ -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');