Closed (fixed)
Project:
BOTCHA Spam Prevention
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2012 at 16:43 UTC
Updated:
29 Nov 2012 at 07:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
PatchRanger commentedShould break since there are only tests for functionality that does not work yet.
Comment #3
PatchRanger commentedComment #4
PatchRanger commentedA typo fixed.
Comment #5
PatchRanger commentedFixed in D7: http://drupalcode.org/project/botcha.git/commit/61af7f9.
Comment #6
PatchRanger commentedComment #7
PatchRanger commentedComment #8
PatchRanger commentedFixed for D6 also: http://drupalcode.org/project/botcha.git/commit/318e019.
Comment #9
iva2k commentedAfter a quick glance at the patch I noticed the test may fail occasionally (one in a million) when both rand()'s return 0 and there is a bug not resetting the counts. It makes sense to use a simple change to rand(1,...) instead of rand(0,...) to ensure the counts are non-zero to start from and test is 100% reliable. Reference: PHP rand()
Comment #10
PatchRanger commentedNice shot, thank you!
Fixed for both versions: http://drupalcode.org/project/botcha.git/commit/047d599 & http://drupalcode.org/project/botcha.git/commit/c783cd1.