When submitting an empty comment, spam module scans it, categorizes it as spam, and gives the user an error message (or even worse, redirects to the front page with that setting on). Instead, it shouldn't do anything at all, and let the standard form validation error do its thing.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gnassar’s picture

Status: Needs review » Closed (cannot reproduce)

Empty comments return the standard form validation error. This must've been fixed between now and then, I'm guessing. Please re-open with more detail if this still occurs for you.

darrell_ulm’s picture

Version: 6.x-1.0 » 6.x-1.4
Status: Closed (cannot reproduce) » Patch (to be ported)
FileSize
760 bytes

Hello. Here is the same patch ported to version 6.x-1.4. I can reproduce this issue.

Thanks,

AlexisWilke’s picture

Status: Patch (to be ported) » Fixed

Hi guys,

I committed this patch. I don't see a reason for it causing any kind of trouble and it makes sense to not even try to check an empty buffer (and thinking about it we probably have the same problem with nodes, but that's less of a problem there I would imagine.)

Now what I'm wondering about is... why on Earth was a session used for a global variable?! Session data is saved in the database!!! DEAD SLOW. I'll have to check on that but I would imagine that this $_SESSION['spam_form'] is temporary and thus doesn't need to be in a session. But that's a different issue! See: #712624: Unnecessary session data being stored

Thank you.
Alexis

AlexisWilke’s picture

FYI, I just noticed that I had not pushed the changes... It will be in the next dev version. Sorry for the delay.

Alexis

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.