mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-19 15:53:53 +02:00
Further fixes and optimizations to EPP
This commit is contained in:
parent
cd265c92f0
commit
d312db4f14
5 changed files with 25 additions and 21 deletions
|
@ -76,7 +76,7 @@ function processHostCheck($conn, $db, $xml, $trans) {
|
|||
$host = (string)$host;
|
||||
|
||||
// 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) {
|
||||
if (!validateHostName($host)) {
|
||||
sendEppError($conn, $db, 2005, 'Invalid host name', $clTRID, $trans);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue