No checks done when configured for anonymous users
schildi - September 12, 2009 - 11:51
| Project: | http:BL |
| Version: | 5.x-2.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | praseodym |
| Status: | closed |
Jump to:
Description
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-uidSee attached patch
| Attachment | Size |
|---|---|
| httpbl.module-user.patch | 468 bytes |

#1
Atachment is not working. Also, this is a bug.
#2
I'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.
#3
A new release package should be ready in a few minutes.
#4
Automatically closed -- issue fixed for 2 weeks with no activity.