Struggling with this one.
I have set up a basic email/enquiry form for a client using WordPress (Fast secure contact form – Mike Challis, which I’ve used before with no problem).
I tested it with various emails – got others to test – All fine.
Passed on to client for approval and his email address (two of them) create the error: Illegal characters in POST. Possible email injection attempt
One is a BT email the other is Gmail. I have tested again with BT and Gmail all fine for my addresses – I try his again and the same error.
I did have the account password protected while testing so disabled that to see if that was the problem but makes no difference.
There’s quite a bit of code so I won’t paste it yet as someone my know instantly why this would be.
My original form had some customisations (only visual) but even when going back the simplest new install of the plugin, same error – only with clients email addresses. Embarrassing.
Would really appreciate your hunches.
Thanks
I’ve found this code in the plugin (line 1433 and onwards in the latest wordpress plugin version):
The error occurs when at least one of the posted fields contain an ‘invalid’ value anywhere in the string. The most likely candidates that trigger this error on email addresses would seem to be onmouse, onkey, onclick, and onload. (Note that the words ‘donkey’ and ‘monkey’ are allowed.) You should check the value of
$v
just before the return statement so you can determine which section causes the error, then you can decide how to solve the problem.