Skip to content
Snippets Groups Projects
Commit 2374d56b authored by Jeff Geerling's avatar Jeff Geerling
Browse files

Issue #1253480 by geerlingguy: Some Drush calls raise time limit warnings.

parent f3e0cac9
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,11 @@ function honeypot_form_alter(&$form, &$form_state, $form_id) {
// If configured to protect all forms, add protection to every form.
if (variable_get('honeypot_protect_all_forms', 0)) {
honeypot_add_form_protection($form, $form_state, array('honeypot', 'time_restriction'));
// Don't protect system forms - only admins should have access, and system
// forms may be programmatically submitted by drush and other modules.
if (strpos($form_id, 'system_') === FALSE) {
honeypot_add_form_protection($form, $form_state, array('honeypot', 'time_restriction'));
}
}
// Otherwise add form protection to admin-configured forms.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment