From 5c6ff7f0875dcaca0e039e4226a3ca5ee67b8f30 Mon Sep 17 00:00:00 2001 From: Pinga <121483313+getpinga@users.noreply.github.com> Date: Mon, 29 Jul 2024 18:40:16 +0300 Subject: [PATCH] Make sure domains and hosts are created in lowercase in EPP --- epp/src/epp-create.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/epp/src/epp-create.php b/epp/src/epp-create.php index 295fc7e..10f7968 100644 --- a/epp/src/epp-create.php +++ b/epp/src/epp-create.php @@ -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); @@ -573,7 +575,9 @@ function processHostCreate($conn, $db, $xml, $clid, $database_type, $trans) { function processDomainCreate($conn, $db, $xml, $clid, $database_type, $trans, $minimum_data) { $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)) {