mirror of
https://github.com/nextcloud/server.git
synced 2026-02-11 14:54:02 -05:00
Also replace password in updatePrivateKeyPassword
Fixes https://github.com/owncloud/core/issues/23717
This commit is contained in:
parent
cce6194368
commit
09b14ceffc
1 changed files with 1 additions and 1 deletions
|
|
@ -284,7 +284,7 @@ class Log implements ILogger {
|
|||
'File' => $exception->getFile(),
|
||||
'Line' => $exception->getLine(),
|
||||
);
|
||||
$exception['Trace'] = preg_replace('!(login|checkPassword)\(.*\)!', '$1(*** username and password replaced ***)', $exception['Trace']);
|
||||
$exception['Trace'] = preg_replace('!(login|checkPassword|updatePrivateKeyPassword)\(.*\)!', '$1(*** username and password replaced ***)', $exception['Trace']);
|
||||
$msg = isset($context['message']) ? $context['message'] : 'Exception';
|
||||
$msg .= ': ' . json_encode($exception);
|
||||
$this->error($msg, $context);
|
||||
|
|
|
|||
Loading…
Reference in a new issue