mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-18 23:33:48 +02:00
parent
e7dde7724f
commit
35e9090009
9 changed files with 363 additions and 359 deletions
|
@ -65,7 +65,7 @@ function processHostCheck($conn, $db, $xml, $trans) {
|
|||
|
||||
// Validation for host name
|
||||
if (!preg_match('/^([A-Z0-9]([A-Z0-9-]{0,61}[A-Z0-9]){0,1}\\.){1,125}[A-Z0-9]([A-Z0-9-]{0,61}[A-Z0-9])$/i', $host) && strlen($host) > 254) {
|
||||
sendEppError($conn, 2005, 'Invalid host name', $clTRID);
|
||||
sendEppError($conn, $db, 2005, 'Invalid host name', $clTRID, $trans);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue