Also replace password in updatePrivateKeyPassword

Fixes https://github.com/owncloud/core/issues/23717
remotes/origin/fetchallappconfig
Lukas Reschke 10 years ago
parent cce6194368
commit 09b14ceffc
  1. 2
      lib/private/log.php

@ -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…
Cancel
Save