Skip to content

Commit eb05e02

Browse files
committed
Merge branch 'my-fix-420-mask-sensitive-information1' of https://github.com/YLChen-007/cloudstack into my-fix-420-mask-sensitive-information1
2 parents 90a8424 + dd6f0f0 commit eb05e02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/main/java/com/cloud/api/ApiServer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,8 +622,9 @@ public String handleRequest(final Map params, final String responseType, final S
622622
final String keyStr = (String) key;
623623
final String[] value = (String[]) params.get(key);
624624

625+
String lowerKeyStr = keyStr.toLowerCase();
625626
boolean isSensitive = sensitiveFields.stream()
626-
.anyMatch(field -> keyStr.toLowerCase().contains(field));
627+
.anyMatch(lowerKeyStr::contains);
627628

628629
String logValue;
629630
if (isSensitive) {

0 commit comments

Comments
 (0)