diff --git a/lib/bot_protection.php b/lib/bot_protection.php index e3d51a8..5a823e0 100644 --- a/lib/bot_protection.php +++ b/lib/bot_protection.php @@ -133,6 +133,9 @@ class bot_protection{ $answers[] = $regex; } + // dedup + $answers = array_unique($answers); + if( !$invalid && $key !== false // has captcha been gen'd?