Skip to content
GitLab
Menu
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
7003a045
Commit
7003a045
authored
Jan 15, 2021
by
Dominik Hebeler
Browse files
spammers will now all receive the same uid
parent
72e4d70e
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Middleware/HumanVerification.php
View file @
7003a045
...
...
@@ -33,7 +33,7 @@ class HumanVerification
$uid
=
""
;
if
(
\
App\Http\Controllers\HumanVerification
::
couldBeSpammer
(
$ip
))
{
$id
=
hash
(
"sha1"
,
"999.999.999.999"
);
$uid
=
hash
(
"sha1"
,
"999.999.999.999
"
.
$ip
.
$_SERVER
[
"AGENT"
]
.
"
uid"
);
$uid
=
hash
(
"sha1"
,
"999.999.999.999uid"
);
}
else
{
$id
=
hash
(
"sha1"
,
$ip
);
$uid
=
hash
(
"sha1"
,
$ip
.
$_SERVER
[
"AGENT"
]
.
"uid"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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