Further fixes about clTRID in error response

This commit is contained in:
Pinga 2023-08-23 12:21:35 +03:00
parent d637d1a873
commit 720635367e
6 changed files with 151 additions and 151 deletions

View file

@ -60,7 +60,7 @@ function processHostCheck($conn, $db, $xml) {
// 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');
sendEppError($conn, 2005, 'Invalid host name', $clTRID);
return;
}