From cad863e5f90fc46f67ccb4a264513326d3ade6fc Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Sun, 31 Mar 2024 20:59:46 +0200 Subject: [PATCH] Downcase new domains. --- src/storage.cr | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/storage.cr b/src/storage.cr index c1356fa..8c56419 100644 --- a/src/storage.cr +++ b/src/storage.cr @@ -112,6 +112,9 @@ class DNSManager::Storage user_data = user_must_exist! user_id + # Prevent future very confusing errors. + domain = domain.downcase + return Response::DomainAlreadyExists.new if zones_by_domain.get? domain # Verify if the domain is acceptable.