BUG(?) – allowing title/content with disallowed words
-
We had a rash of spam coming into our form today and we were confused because even after adding keywords in to the “Disallowed Comment Keys” in WordPress we were still seeing posts making it through to the forums that contained words we put into that list.
I think I found a bug in bbPress, and man, it must be rather longstanding… I found a post in the forum from about two years ago that talked about the reworking of the blacklist to using the disallow list [or that the name of the list had changed], and maybe this crept in at that time.
Here is the code:
bbpress/includes/common/functions.php:
866 // Strict mode uses WordPress “blacklist” settings
867 if ( true === $strict ) {
868 $hook_name = ‘blacklist’;
869 $option_name = ‘disallow_keys’;In actuality, the key name in the options table is ‘disallowed_keys’.
I changed the code on our site and it seems to have stopped the flood. Would you take a look and see if I am correct about this? If not, please let me know and I will revert our copy and apologize for the false alarm. 🙂
Thanks!
Steve
- You must be logged in to reply to this topic.