Ensure that entries in a list of lists are not lost during sanitization

Closes gh-8263
See gh-8197
This commit is contained in:
Johnny Lim 2017-02-12 16:21:14 +09:00 committed by Andy Wilkinson
parent 9499658bc3
commit 88afc43d44

View File

@ -259,10 +259,9 @@ public class ConfigurationPropertiesReportEndpoint
sanitized.add(sanitize(prefix, (Map<String, Object>) item));
}
else if (item instanceof List) {
sanitize(prefix, (List<Object>) item);
sanitized.add(sanitize(prefix, (List<Object>) item));
}
else {
item = this.sanitizer.sanitize(prefix, item);
sanitized.add(this.sanitizer.sanitize(prefix, item));
}
}