Make sure domains and hosts are created in lowercase in EPP

This commit is contained in:
Pinga 2024-07-29 18:40:16 +03:00
parent d7512206b4
commit 5c6ff7f087

View file

@ -403,6 +403,8 @@ function processHostCreate($conn, $db, $xml, $clid, $database_type, $trans) {
return;
}
$hostName = strtolower($hostName);
$host_addr_list = $xml->xpath('//addr');
if (count($host_addr_list) > 13) {
sendEppError($conn, $db, 2306, 'No more than 13 host:addr are allowed', $clTRID, $trans);
@ -574,6 +576,8 @@ function processDomainCreate($conn, $db, $xml, $clid, $database_type, $trans, $m
$domainName = $xml->command->create->children('urn:ietf:params:xml:ns:domain-1.0')->create->name;
$clTRID = (string) $xml->command->clTRID;
$domainName = strtolower($domainName);
$extensionNode = $xml->command->extension;
$launch_create = null;
if (isset($extensionNode)) {