Drupal Answers is a question and answer site for Drupal developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a very simple webform (ie. name, email, comments) that has begun giving this response to any submissions, no matter what they are:

Illegal information. Data not submitted.

Has anyone seen that before? The results are still saved in the webform but it causes confusion and people also enter their comments multiple times as a result.

share|improve this question
up vote 6 down vote accepted

It seems that message is triggered by the _webform_submission_spam_check function. Looking at the code, it seems to check the following regular expression:

'/(b?cc\s?:)|(content\-type:)/i', $to . "\n" . $subject . "\n" . $from . "\n" . $headers

Maybe some of the submissions contain "cc" or "bcc" or "content-type"?

share|improve this answer
Wow, brilliant. And weird. An email was configured to send from the form with a subject line that began with "CC: " and as soon as I changed that the message went away. Thanks! – Laryn - CEDC.org Jan 29 at 15:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.