mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Update Security Errors #2044
This commit is contained in:
parent
bba4de04bf
commit
9424049457
@ -282,7 +282,8 @@ class AppController extends BaseController
|
||||
if (! Utils::isNinjaProd()) {
|
||||
if ($password = env('UPDATE_SECRET')) {
|
||||
if (! hash_equals($password, request('secret') ?: '')) {
|
||||
abort(400, 'Invalid secret: /update?secret=<value>');
|
||||
echo 'Invalid secret: /update?secret=<value>';
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user