Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When configured to check requests for anonymous users "http:bl" will not check any IP address. The reason is that in line 631
if (variable_get('httpbl_check ... && $user )) {
global variable/struct "user" is always defined and the check results in TRUE.
Probably it was meant to check it the current user id is greater than 0:
... && $user-uid
See attached patch
Comment | File | Size | Author |
---|---|---|---|
httpbl.module-user.patch | 468 bytes | schildi |
Comments
Comment #1
ruharen CreditAttribution: ruharen commentedAtachment is not working. Also, this is a bug.
Comment #2
praseodym CreditAttribution: praseodym commentedI'll have to see if I can update the 5.x branch. I think a check for "$user->uid > 0" instead of just "$user" should suffice.
Comment #3
praseodym CreditAttribution: praseodym commentedA new release package should be ready in a few minutes.