Closed (fixed)
Project:
Spam
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Jan 2011 at 19:22 UTC
Updated:
3 Feb 2011 at 23:00 UTC
Jump to comment: Most recent file
As I was reviewing all the variables, I noticed this one:
spam_blacklist_ip
It only appears in a variable_get() in the Duplicate filter:
$arguments = array(variable_get('spam_threshold', SPAM_DEFAULT_THRESHOLD), variable_get('spam_blacklist_ip', SPAM_FILTER_DUPLICATE_DEFAULT_BLACKLIST));
There is no UI to set the variable. (There is actually no other place where it appears from what I can see.)
If it is expected, it should be documented because at this point I would imagine that no one knows it exists and thus no one does anything with it.
Thank you.
Alexis Wilke
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | spam-6.x-old_backlist_variable.patch | 1.05 KB | AlexisWilke |
Comments
Comment #1
gnassar commentedSPAM_FILTER_DUPLICATE_DEFAULT_BLACKLIST as the default value should've been the giveaway here. Did you notice where else that was used as a default?
For example, line 88:
Pretty much the same everywhere else you see that constant. The line you found obviously must be an old variable that didn't get changed, probably from a very old pre-5.x-3.x change. 'spam_blacklist_ip' should be 'spam_filter_duplicate_blacklist'.
Comment #2
AlexisWilke commentedAt least I found something... 8-)
There is a patch for this one.
Thank you.
Alexis
Comment #3
gnassar commentedComment #4
AlexisWilke commentedThank you.
http://drupal.org/cvs?commit=485976