- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for sanitizeForLogging (0.05 sec)
-
src/test/java/jcifs/util/InputValidatorTest.java
// Test null input assertEquals("null", InputValidator.sanitizeForLogging(null)); // Test normal string without control characters assertEquals("test", InputValidator.sanitizeForLogging("test")); // Test removal of control characters (they are removed, not replaced with spaces) assertEquals("teststring", InputValidator.sanitizeForLogging("test\0string"));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 11.9K bytes - Viewed (0) -
src/main/java/jcifs/util/InputValidator.java
* Sanitizes a string for safe logging (removes control characters) * * @param input the string to sanitize * @return sanitized string safe for logging */ public static String sanitizeForLogging(String input) { if (input == null) { return "null"; } // Remove control characters and limit length String sanitized = input.replaceAll("[\\x00-\\x1f]", "");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0)