Skip to content

Commit 88afc43

Browse files
izeyewilkinsona
authored andcommitted
Ensure that entries in a list of lists are not lost during sanitization
Closes gh-8263 See gh-8197
1 parent 9499658 commit 88afc43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/ConfigurationPropertiesReportEndpoint.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,10 +259,9 @@ private List<Object> sanitize(String prefix, List<Object> list) {
259259
sanitized.add(sanitize(prefix, (Map<String, Object>) item));
260260
}
261261
else if (item instanceof List) {
262-
sanitize(prefix, (List<Object>) item);
262+
sanitized.add(sanitize(prefix, (List<Object>) item));
263263
}
264264
else {
265-
item = this.sanitizer.sanitize(prefix, item);
266265
sanitized.add(this.sanitizer.sanitize(prefix, item));
267266
}
268267
}

0 commit comments

Comments
 (0)