Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
honeypot-2949447
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
honeypot-2949447
Commits
2374d56b
Commit
2374d56b
authored
13 years ago
by
Jeff Geerling
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
honeypot.module
+5
-1
5 additions, 1 deletion
honeypot.module
with
5 additions
and
1 deletion
honeypot.module
+
5
−
1
View file @
2374d56b
...
...
@@ -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.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment