From 4349bf232d93fa1f868668f50b948bd9b90dff47 Mon Sep 17 00:00:00 2001 From: lolcat Date: Sat, 11 Apr 2026 17:32:20 -0400 Subject: [PATCH] captcha bruteforce fix --- lib/bot_protection.php | 3 +++ 1 file changed, 3 insertions(+) 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?