Closed (fixed)
Project:
http:BL
Version:
5.x-2.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Sep 2009 at 11:51 UTC
Updated:
26 Sep 2009 at 14:30 UTC
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 commentedAtachment is not working. Also, this is a bug.
Comment #2
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 commentedA new release package should be ready in a few minutes.