Patch for problems when the areyouahuman.com site is down
-
There’re two problems with the current plugin…
ayah_cf7.php is not included from global. And the global var declared there isn’t visible from inside any functions. I haven’t checked fully but this maybe a problem with other things that uses global vars.
contactform’s result doesn’t use the ‘valid’ flag. I’ve changed it to use $result->invalidate(…) instead.
This problems are noticeable when the areyouahuman site goes down and spammers are able to get through the site. You can test it out by doing something like changing the /ws/scoreGame url to something that doesn’t work. Without the patch, your message will go through without any errors even though the score has not been retreived.
Here’s a patch that fixes these problems…
https://gist.github.com/niknah/233faf895e82fdbddd45
- The topic ‘Patch for problems when the areyouahuman.com site is down’ is closed to new replies.