Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
honeypot-2997609
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-2997609
Commits
da641e56
Commit
da641e56
authored
10 years ago
by
Jeff Geerling
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug introduced by previous commit and document the line.
parent
53b21836
No related branches found
Branches containing commit
Tags
6.x-1.17
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
honeypot.module
+2
-0
2 additions, 0 deletions
honeypot.module
with
2 additions
and
0 deletions
honeypot.module
+
2
−
0
View file @
da641e56
...
...
@@ -223,6 +223,8 @@ function _honeypot_time_restriction_validate($element, &$form_state) {
// If not, throw an error.
if
(
time
()
<
(
$honeypot_time
+
$time_limit
))
{
_honeypot_log
(
$form_state
[
'values'
][
'form_id'
],
'honeypot_time'
);
// Get the time limit again, since it increases after first failure.
$time_limit
=
honeypot_get_time_limit
(
$form_state
[
'values'
]);
$form_state
[
'values'
][
'honeypot_time'
]
=
time
();
form_set_error
(
''
,
t
(
'There was a problem with your form submission. Please wait @limit seconds and try again.'
,
array
(
'@limit'
=>
$time_limit
)));
}
...
...
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