[1.5] trim($_POST)/die obsolete?
-
I was using a slightly modified version of Jeff Barr‘s comment verification in my WordPress 1.2.2 version. It worked better than any hack or plug-in I had used before… When I upgraded today I found out that the comments marked as “spam” by this code would still go through.
The code he developed used “trim($_POST)” which seems to be missing in 1.5. Am I mistaken? Does 1.5 have any similar option which would make his verification work?
From wp-comments-post.php:
$spammer = trim($_POST["spammer"]);
if ( "no" != $spammer )
die("If you are not a spammer, please press your back button.");(The commenter had to choose the “I am not a spammer” radio button for the comment to be accepted.)
The topic ‘[1.5] trim($_POST)/die obsolete?’ is closed to new replies.