mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-23 20:00:33 -04:00
Update Security Errors #2044
This commit is contained in:
parent
1ae25c4ec7
commit
96e2d6734e
@ -282,7 +282,9 @@ class AppController extends BaseController
|
||||
if (! Utils::isNinjaProd()) {
|
||||
if ($password = env('UPDATE_SECRET')) {
|
||||
if (! hash_equals($password, request('secret') ?: '')) {
|
||||
echo 'Invalid secret: /update?secret=<value>';
|
||||
$message = 'Invalid secret: /update?secret=<value>';
|
||||
Utils::logError($message);
|
||||
echo $message;
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user