From: Michael Tremer Date: Mon, 22 Dec 2025 10:34:25 +0000 (+0000) Subject: sources: Strip any whitespace from domains X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61ebdd89a266e4aeac71bab78b2564ea55e7158a;p=dbl.git sources: Strip any whitespace from domains Signed-off-by: Michael Tremer --- diff --git a/src/dnsbl/sources.py b/src/dnsbl/sources.py index af41fe9..c5441db 100644 --- a/src/dnsbl/sources.py +++ b/src/dnsbl/sources.py @@ -210,6 +210,9 @@ class Source(sqlmodel.SQLModel, database.BackendMixin, table=True): case _: continue + # Strip any whitespace + domain = domain.strip() + # Skip the line if no domain could be extracted if not domain: continue