Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
c06f7265
Commit
c06f7265
authored
Nov 09, 2021
by
Dominik Hebeler
Browse files
Giving each spamming ip a unique uid
parent
63cd7ca5
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
app/Http/Middleware/HumanVerification.php
View file @
c06f7265
...
...
@@ -35,7 +35,7 @@ class HumanVerification
$spamID
=
\
App\Http\Controllers\HumanVerification
::
couldBeSpammer
(
$ip
);
if
(
!
empty
(
$spamID
))
{
$id
=
hash
(
"sha1"
,
$spamID
);
$uid
=
hash
(
"sha1"
,
$spamID
.
"uid"
);
$uid
=
hash
(
"sha1"
,
$spamID
.
$ip
.
$_SERVER
[
"AGENT"
]
.
"uid"
);
}
else
{
$id
=
hash
(
"sha1"
,
$ip
);
$uid
=
hash
(
"sha1"
,
$ip
.
$_SERVER
[
"AGENT"
]
.
"uid"
);
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment