Skip to content

Commit

Permalink
Merge pull request #23722 from owncloud/also-hide-password-for-privat…
Browse files Browse the repository at this point in the history
…e-key-password-update

Also replace password in updatePrivateKeyPassword
  • Loading branch information
DeepDiver1975 committed Apr 4, 2016
2 parents 1d542e4 + 09b14ce commit 64d68eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/log.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public function logException(\Exception $exception, array $context = array()) {
'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);
Expand Down

0 comments on commit 64d68eb

Please sign in to comment.