aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlolcat <will@lolcat.ca>2026-04-11 17:32:20 -0400
committerlolcat <will@lolcat.ca>2026-04-11 17:32:20 -0400
commit4349bf232d93fa1f868668f50b948bd9b90dff47 (patch)
treefbc08312757b83cd6e2683ea084740a56ea98931
parent60d6f649ee3b892e4976e55eb066793952560da4 (diff)
captcha bruteforce fix
-rw-r--r--lib/bot_protection.php3
1 files changed, 3 insertions, 0 deletions
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?
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage