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:
commit
f8b1e2cca1
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue