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
Proxy
Commits
3ba0b387
Commit
3ba0b387
authored
Mar 20, 2018
by
Phil Höfer
Browse files
Update CheckPassword.php
parent
47a44fd6
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Middleware/CheckPassword.php
View file @
3ba0b387
...
...
@@ -25,6 +25,12 @@ class CheckPassword
}
else
{
$targetUrl
=
str_replace
(
"<<SLASH>>"
,
"/"
,
$request
->
route
(
'url'
));
$targetUrl
=
str_rot13
(
base64_decode
(
$targetUrl
));
// FIXME temporary check for ban list
if
(
md5
(
$targetUrl
)
===
"d1524b8dd3f1bee9ba24fe775339ba40"
)
{
return
abort
(
403
);
}
// Check Password:
$checkPw
=
md5
(
env
(
'PROXY_PASSWORD'
)
.
$targetUrl
);
$password
=
$request
->
route
(
'password'
);
...
...
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