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

[stable9] Also replace password in updatePrivateKeyPassword
This commit is contained in:
Thomas Müller 2016-04-04 10:54:47 +02:00
commit f8b1e2cca1
1 changed files with 1 additions and 1 deletions

View File

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