From ef2a5daa590870e964643d5f2b913548e4cb6daa Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Tue, 21 Sep 2021 16:56:47 -0700 Subject: [PATCH] Polish --- .../org/springframework/boot/actuate/endpoint/Sanitizer.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Sanitizer.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Sanitizer.java index 0e3af63c932..f834d926e79 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Sanitizer.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/Sanitizer.java @@ -48,9 +48,8 @@ public class Sanitizer { private static final String[] REGEX_PARTS = { "*", "$", "^", "+" }; - private static final Set DEFAULT_KEYS_TO_SANITIZE = new LinkedHashSet<>( - Arrays.asList("password", "secret", "key", "token", ".*credentials.*", "vcap_services", "sun.java.command", - "^spring[\\._]application[\\\\._]json$")); + private static final Set DEFAULT_KEYS_TO_SANITIZE = new LinkedHashSet<>(Arrays.asList("password", "secret", + "key", "token", ".*credentials.*", "vcap_services", "sun.java.command", "^spring[._]application[._]json$")); private static final Set URI_USERINFO_KEYS = new LinkedHashSet<>( Arrays.asList("uri", "uris", "url", "urls", "address", "addresses"));