Browse Source

captcha bruteforce fix

lolcat 3 tháng trước cách đây
mục cha
commit
4349bf232d
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      lib/bot_protection.php

+ 3 - 0
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?