Explorar el Código

captcha bruteforce fix

lolcat hace 3 meses
padre
commit
4349bf232d
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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?