Skip to content

Commit

Permalink
Update fediverse.py
Browse files Browse the repository at this point in the history
  • Loading branch information
gnh1201 authored Oct 8, 2024
1 parent 2fb49cc commit 7472260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/fediverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def test(self, filtered, data, webserver, port, scheme, method, url):
return False

# check if the text contains any of the bad domains
bad_domains = list(filter(None, map(str.strip, bad_domain)))
bad_domains = list(filter(None, map(str.strip, bad_domain.split(",")))
if bool(re.search(r"https?://(" + "|".join(re.escape(domain) for domain in bad_domains) + ")", text)):
logger.warning("[*] Found a bad reputation domain.")
logger.warning("[*] BLOCKED MESSAGE: %s" % (text))
Expand Down

0 comments on commit 7472260

Please sign in to comment.