mod_firewall: spam-blocking.pfw: Remove requirement for invites to have no body
authorMatthew Wild <mwild1@gmail.com>
Thu, 08 Jun 2023 12:20:34 +0100
changeset 5537 09311a8a3cfa
parent 5536 d84757f9adcb
child 5538 7b4e0c3642bf
mod_firewall: spam-blocking.pfw: Remove requirement for invites to have no body Some clients (e.g. Gajim) send a body, which I guess makes sense. The bare JID sender check should already make it hard to bypass this (i.e. a normal client putting muc#user into a normal chat message shouldn't bypass the usual message filters).
mod_firewall/scripts/spam-blocking.pfw
--- a/mod_firewall/scripts/spam-blocking.pfw	Thu Jun 08 11:30:39 2023 +0100
+++ b/mod_firewall/scripts/spam-blocking.pfw	Thu Jun 08 12:20:34 2023 +0100
@@ -100,7 +100,6 @@
 # Mediated MUC invitations are naturally from 'strangers' and have special
 # handling. We lean towards accepting them, unless overridden by custom rules.
 NOT FROM FULL JID?
-NOT INSPECT: body
 INSPECT: {http://jabber.org/protocol/muc#user}x/invite
 JUMP CHAIN=user/spam_check_muc_invite