From: Mint <> Date: Fri, 9 Sep 2022 16:30:11 +0000 (+0300) Subject: More sanitization X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb491af8ec75db978d040102523f538e1c39f223;p=fba.git More sanitization --- diff --git a/fetch_blocks.py b/fetch_blocks.py index efbed2f..7f1fedb 100644 --- a/fetch_blocks.py +++ b/fetch_blocks.py @@ -185,6 +185,8 @@ def tidyup(domain: str) -> str: domain = re.sub("\:\d+$", "", domain) # bigger retards put the schema in their blocklist, sometimes even without slashes domain = re.sub("^https?\:(\/*)", "", domain) + # and trailing slash + domain = re.sub("\/$", "", domain) # the biggest retards of them all try to block individual users domain = re.sub("(.+)\@", "", domain) return domain