We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 425816f commit d012115Copy full SHA for d012115
src/authentication/logging/SensitiveDataMasker.js
@@ -28,7 +28,11 @@ function maskSensitiveData(message) {
28
var isFieldSensitive = (sensitiveFields.indexOf(prop) > -1);
29
if (isFieldSensitive === true) {
30
if (jsonMsg[prop] != null || jsonMsg[prop] != undefined) {
31
- jsonMsg[prop] = new Array(jsonMsg[prop].length + 1).join('X');
+ if(typeof jsonMsg[prop].length === 'number'){
32
+ jsonMsg[prop] = new Array(jsonMsg[prop].length + 1).join('X');
33
+ }else if (jsonMsg.hasOwnProperty(prop)) {
34
+ jsonMsg[prop] = JSON.parse(maskSensitiveData(jsonMsg[prop]));
35
+ }
36
}
37
} else if (jsonMsg.hasOwnProperty(prop)) {
38
jsonMsg[prop] = JSON.parse(maskSensitiveData(jsonMsg[prop]));
0 commit comments