Added change note, adjusted spacing in comment

This commit is contained in:
aegilops
2025-11-17 11:02:59 +00:00
parent 0c0fbc1457
commit 528c451007
2 changed files with 5 additions and 1 deletions

View File

@@ -47,7 +47,7 @@ private class TypeType extends RefType {
/**
* A sanitizer that may remove sensitive information from a string before logging.
*
* It allows for substring operations taking the first N (or last N, for Kotlin) characters, limited to 7 or fewer.
* It allows for substring operations taking the first N (or last N, for Kotlin) characters, limited to 7 or fewer.
*/
private class SensitiveLoggerSanitizerCalled extends SensitiveLoggerBarrier {
SensitiveLoggerSanitizerCalled() {

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* Calls to `substring` (for Java), `take` (for Kotlin) and similar functions, when called with a fixed length less than or equal to 7, are now treated as sanitizers for the `java/sensitive-log` query.