aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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