Added epp database log for error messages too

- Fixed #14
This commit is contained in:
Pinga 2023-08-27 17:47:37 +03:00
parent e7dde7724f
commit 35e9090009
9 changed files with 363 additions and 359 deletions

View file

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