diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-10-18 11:34:45 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-10-18 11:34:45 +0000 |
commit | 2dc3c05a2b40653f10bd57e76007de22b6468a8f (patch) | |
tree | 4b1994df6c6a1dbae1a7087a105fe464e5171096 /modules/contact | |
parent | cae0e2036505e4f3b3a4ff4924b9921385741f10 (diff) | |
download | brdo-2dc3c05a2b40653f10bd57e76007de22b6468a8f.tar.gz brdo-2dc3c05a2b40653f10bd57e76007de22b6468a8f.tar.bz2 |
- Patch #589126 by mfb: fixed bug with user module using a flood window of 6 hours, but flood events more than 1 hour old being deleted by cron. Improved API documentation, and added tests.
Diffstat (limited to 'modules/contact')
-rw-r--r-- | modules/contact/contact.pages.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc index fa5606448..72603a39d 100644 --- a/modules/contact/contact.pages.inc +++ b/modules/contact/contact.pages.inc @@ -154,7 +154,7 @@ function contact_site_form_submit($form, &$form_state) { drupal_mail('contact', 'page_autoreply', $from, $language, $values, $to); } - flood_register_event('contact'); + flood_register_event('contact', variable_get('contact_threshold_window', 3600)); watchdog('mail', '%sender-name (@sender-from) sent an e-mail regarding %category.', array('%sender-name' => $values['name'], '@sender-from' => $from, '%category' => $values['category']['category'])); // Jump to home page rather than back to contact page to avoid @@ -278,7 +278,7 @@ function contact_personal_form_submit($form, &$form_state) { drupal_mail('contact', 'user_copy', $from, $language, $values, $from); } - flood_register_event('contact'); + flood_register_event('contact', variable_get('contact_threshold_window', 3600)); watchdog('mail', '%sender-name (@sender-from) sent %recipient-name an e-mail.', array('%sender-name' => $values['name'], '@sender-from' => $from, '%recipient-name' => $values['recipient']->name)); // Jump to the contacted user's profile page. |