From a58830a5d2634fdc0e557775862014714beb1ec6 Mon Sep 17 00:00:00 2001 From: Robert Scheck Date: Tue, 22 Jan 2019 19:26:18 +0100 Subject: [PATCH 1/2] Updated IDN Character List for .DE domains (fixes #252) Added all 93 characters which are additionally allowed for .DE domains, see: https://www.denic.de/en/know-how/idn-domains/idn-character-list/ --- src/Hostname.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Hostname.php b/src/Hostname.php index a97d787d1..bcb771746 100644 --- a/src/Hostname.php +++ b/src/Hostname.php @@ -1628,7 +1628,7 @@ class Hostname extends AbstractValidator * (.CH) Switzerland https://nic.switch.ch/reg/ocView.action?res=EF6GW2JBPVTG67DLNIQXU234MN6SC33JNQQGI7L6#anhang1 * (.CL) Chile http://www.iana.org/domains/idn-tables/tables/cl_latn_1.0.html * (.COM) International http://www.verisign.com/information-services/naming-services/internationalized-domain-names/index.html - * (.DE) Germany http://www.denic.de/en/domains/idns/liste.html + * (.DE) Germany https://www.denic.de/en/know-how/idn-domains/idn-character-list/ * (.DK) Danmark http://www.dk-hostmaster.dk/index.php?id=151 * (.EE) Estonia https://www.iana.org/domains/idn-tables/tables/pl_et-pl_1.0.html * (.ES) Spain https://www.nic.es/media/2008-05/1210147705287.pdf @@ -1681,7 +1681,7 @@ class Hostname extends AbstractValidator 'CL' => [1 => '/^[\x{002d}0-9a-záéíñóúü]{1,63}$/iu'], 'CN' => 'Hostname/Cn.php', 'COM' => 'Hostname/Com.php', - 'DE' => [1 => '/^[\x{002d}0-9a-zà-öø-ÿăąāćĉčċďđĕěėęēğĝġģĥħĭĩįīıĵķĺľļłńňņŋŏőōœĸŕřŗśŝšşťţŧŭůűũųūŵŷźžż]{1,63}$/iu'], + 'DE' => [1 => '/^[\x{002d}0-9a-záàăâåäãąāæćĉčċçďđéèĕêěëėęēğĝġģĥħíìĭîïĩįīıĵķĺľļłńňñņŋóòŏôöőõøōœĸŕřŗśŝšşßťţŧúùŭûůüűũųūŵýŷÿźžżðþ]{1,63}$/iu'], 'DK' => [1 => '/^[\x{002d}0-9a-zäåæéöøü]{1,63}$/iu'], 'EE' => [1 => '/^[\x{002d}0-9a-zäõöüšž]{1,63}$/iu'], 'ES' => [1 => '/^[\x{002d}0-9a-zàáçèéíïñòóúü·]{1,63}$/iu'], From b0e6221835d321e46970261aa3fe39323e106dbf Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Tue, 29 Jan 2019 16:24:36 -0600 Subject: [PATCH 2/2] Adds CHANGELOG entry for #253 --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index efc2284e2..c1ab9a558 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ All notable changes to this project will be documented in this file, in reverse ### Changed -- Nothing. +- [#253](https://github.com/zendframework/zend-validator/pull/253) updates the list of allowed characters for a `DE` domain name to match those published by IDN. ### Deprecated