First, this is a very cool module. I like it alot and it works very well EXCEPT for message limitations. When I limit users to 1, 5, 10 etc. messages per hour...it does not work. How can I fix this?
Incidentally, is there an email address limitation? I see I can send to/input multiple email addresses, either on a comma separated list or each on a new line, and send pages. But, if there are no email address limitations, someone could put a list of 10,000 addresses in the input box and crush my system. Am I missing something obvious? Thanks again for a cool module.
cheers,
larry
Comments
Comment #1
seanrAre you sending the messages while logged in as user/1? The main admin account is excluded from the flood control to allow for testing. Please test this as another user and let me know if the flood control mechanism works as expected.
Comment #2
larry commentedThanks for your quick response. Yes, I thought of this. I tested it as both a registered non-admin user and as an anonymous user, with the appropriate permissions given. In both cases, the limitation did not work.
cheers,
larry
Comment #3
seanrOK, marking this critical then, since this is a potential spam issue. I'll look into it and get back to you.
Comment #4
seanrI realized it's not just user/1 which bypasses the flood check - it's any user with 'administer forward' permissions. I've also tried changing the code for the check a bit. Try it with a user that does not have that permission and let me know if the floodcheck is still getting bypassed.
Comment #5
larry commentedI'm currently giving this module a good go-through with 4.7.2. I'll let you know how it all works. Thanks for looking into this.
cheers,
larry
Comment #6
chromeyellow commentedI think the problem is here (@line 258):
Looks like the flood_is_allowed check is testing against the contact module's history, rather than the forward module. Changing 'contact' to 'forward' should fix this, assuming the rest of the code is right...
Comment #7
seanrThank you very much!! I kept looking and looking and looking and never did see that. LOL! Fixed in DRUPAL-4-7 and HEAD.
Comment #8
(not verified) commented