mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-21 18:16:03 +02:00
Fixed couple of IDN related bugs
This commit is contained in:
parent
4799d57f77
commit
c737147aae
4 changed files with 6 additions and 4 deletions
|
@ -1068,6 +1068,7 @@ class DomainsController extends Controller
|
|||
$csrfTokenValue = $this->container->get('csrf')->getTokenValue();
|
||||
|
||||
if (strpos($domain['name'], 'xn--') === 0) {
|
||||
$domain['punycode'] = $domain['name'];
|
||||
$domain['name'] = idn_to_utf8($domain['name'], IDNA_NONTRANSITIONAL_TO_ASCII, INTL_IDNA_VARIANT_UTS46);
|
||||
}
|
||||
return view($response,'admin/domains/updateDomain.twig', [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue