Merge pull request #23722 from owncloud/also-hide-password-for-private-key-password-update

Also replace password in updatePrivateKeyPassword
This commit is contained in:
Thomas Müller 2016-04-04 10:54:59 +02:00
commit 64d68eb2da
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);