Further fixes and optimizations to EPP

This commit is contained in:
Pinga 2024-11-27 16:28:23 +02:00
parent cd265c92f0
commit d312db4f14
5 changed files with 25 additions and 21 deletions

View file

@ -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;
}