2006-12-20
07:39
Blank Comments in Drupal
We’ve been getting splattered with blank comments on PigPog quite regularly for a while. Probably not something anyone else would notice, as we keep deleting them as soon as we spot them, but it was kind of annoying. Anyway, I finally got around to doing a quick search, and seem to have found a solution – adding a bit of code to the comment.module, as documented here.
Sounds like something is trying to submit comments that actually aren’t blank, but where the entire content gets filtered out. All that’s needed is an extra check for ‘blankness’ after the filters have been applied. Difficult to know for sure if it’s worked – it might be that the blank comments just happened to stop appearing at the same time as I applied the ‘fix’, but it looks like it may have worked.