mirror of
https://github.com/getnamingo/registry.git
synced 2025-05-17 10:06:59 +02:00
Improved TLDs interface
Also fixed IDN table export issue
This commit is contained in:
parent
30682342a8
commit
ab0c6342c3
3 changed files with 20 additions and 1 deletions
|
@ -1749,6 +1749,11 @@ class SystemController extends Controller
|
|||
$idn_table = $db->selectValue('SELECT idn_table FROM domain_tld WHERE tld = ?',
|
||||
[ $args ]);
|
||||
|
||||
if (!$idn_table) {
|
||||
$this->container->get('flash')->addMessage('error', 'TLD does not exist');
|
||||
return $response->withHeader('Location', '/registry/tlds')->withStatus(302);
|
||||
}
|
||||
|
||||
$idn_table_map = [
|
||||
'/^(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-)(.(?!-)(?!.*--)[A-Z0-9-]{1,63}(?<!-))*$/i' => 'ascii',
|
||||
'/^[а-яА-ЯґҐєЄіІїЇѝЍћЋљЈ0-9ʼѫѣѭ]+$/u' => 'cyrillic',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue