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

@ -98,6 +98,12 @@ function processHostDelete($conn, $db, $xml, $clid, $database_type, $trans) {
return;
}
// Validation for host name
if (!validateHostName($hostName)) {
sendEppError($conn, $db, 2005, 'Invalid host name', $clTRID, $trans);
return;
}
$query = "SELECT id, clid FROM host WHERE name = :name LIMIT 1";
$stmt = $db->prepare($query);
$stmt->execute([':name' => $hostName]);