Also replace password in updatePrivateKeyPassword
Fixes https://github.com/owncloud/core/issues/23717
This commit is contained in:
parent
9c800f62dd
commit
78ee14dad5
|
@ -284,7 +284,7 @@ class Log implements ILogger {
|
||||||
'File' => $exception->getFile(),
|
'File' => $exception->getFile(),
|
||||||
'Line' => $exception->getLine(),
|
'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 = isset($context['message']) ? $context['message'] : 'Exception';
|
||||||
$msg .= ': ' . json_encode($exception);
|
$msg .= ': ' . json_encode($exception);
|
||||||
$this->error($msg, $context);
|
$this->error($msg, $context);
|
||||||
|
|
Loading…
Reference in New Issue