Also replace password in updatePrivateKeyPassword

Fixes https://github.com/owncloud/core/issues/23717
This commit is contained in:
Lukas Reschke 2016-04-01 10:32:23 +02:00
parent cce6194368
commit 09b14ceffc
1 changed files with 1 additions and 1 deletions

View File

@ -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);