Fix mongodb secrets being logged (#3850, #3851)

This commit is contained in:
powercas_gamer 2024-03-15 21:23:32 +01:00 committed by GitHub
parent 8c6586f008
commit 1dffd462a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -762,7 +762,8 @@ public final class ConfigKeys {
* @return true if the value should be censored
*/
public static boolean shouldCensorValue(final String path) {
return path.contains("password") || path.contains("uri");
final String lower = path.toLowerCase(Locale.ROOT);
return lower.contains("password") || lower.contains("uri");
}
}