From: Michael Tremer Date: Mon, 5 Jan 2026 10:48:50 +0000 (+0000) Subject: sources: Convert all domains to lowercase X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef9f46d6d1b1d1d147ee8787a34ce779a533fbf8;p=dbl.git sources: Convert all domains to lowercase Signed-off-by: Michael Tremer --- diff --git a/src/dnsbl/sources.py b/src/dnsbl/sources.py index a6617e2..27bdf7d 100644 --- a/src/dnsbl/sources.py +++ b/src/dnsbl/sources.py @@ -273,6 +273,9 @@ class Source(sqlmodel.SQLModel, database.BackendMixin, table=True): log.warning(_("Skipping invalid domain: %s") % domain) continue + # Convert the domain to lowercase + domain = domain.lower() + # Skip any invalid domain names if not util.is_fqdn(domain): # Silently skip any IP addresses