• Found one use-case when trap (captcha and captcha_confirm check) in function ajdg_nobot_filter doesn’t work: in case correct answer is provided (9 for default question) check trap part is never triggered:

    	// Check trap fields
    	$trap_captcha = $trap_confirm = null;
    	if(isset($_POST['captcha'])) $trap_captcha = strip_tags($_POST['captcha']);
    	if(isset($_POST['captcha_confirm'])) $trap_confirm = strip_tags($_POST['captcha_confirm']);
    
    	if($trap_captcha != "" OR $trap_confirm != " ") {
    		wp_die("<p class=\"error\">$security_message</p>");
    	}

    As I understand, because as soon as question is answered correctly, $user_login is returned and function completes it’s job. But if there is still default question in config, trap then makes no sense.

    // Check trap fields should go before // Verify the answer. – in such case plugin would first check if trap is passed and only then check answer.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Bug: Check trap fields doesn’t work’ is closed to new replies.