Skip to content
Snippets Groups Projects
Commit 64d68eb2 authored by Thomas Müller's avatar Thomas Müller
Browse files

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

Also replace password in updatePrivateKeyPassword
parents 1d542e4e 09b14cef
No related branches found
No related tags found
Loading
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment