mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-07 13:14:30 -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 (! Utils::isNinjaProd()) {
|
||||||
if ($password = env('UPDATE_SECRET')) {
|
if ($password = env('UPDATE_SECRET')) {
|
||||||
if (! hash_equals($password, request('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;
|
exit;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user