diff options
| author | lolcat <will@lolcat.ca> | 2026-04-11 17:32:20 -0400 |
|---|---|---|
| committer | lolcat <will@lolcat.ca> | 2026-04-11 17:32:20 -0400 |
| commit | 4349bf232d93fa1f868668f50b948bd9b90dff47 (patch) | |
| tree | fbc08312757b83cd6e2683ea084740a56ea98931 | |
| parent | 60d6f649ee3b892e4976e55eb066793952560da4 (diff) | |
captcha bruteforce fix
| -rw-r--r-- | lib/bot_protection.php | 3 |
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? |
