- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for sanitizeFn (0.21 sec)
-
src/main/java/jcifs/util/InputValidator.java
} // Remove control characters and limit length String sanitized = input.replaceAll("[\\x00-\\x1f]", ""); if (sanitized.length() > 1000) { sanitized = sanitized.substring(0, 997) + "..."; } return sanitized; } /** * Validates that a value is within the specified range * * @param value the value to check * @param min minimum value (inclusive)Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 13.5K bytes - Viewed (0) -
src/test/java/jcifs/util/InputValidatorTest.java
// Test long string truncation String longString = "a".repeat(1100); String sanitized = InputValidator.sanitizeForLogging(longString); assertEquals(1000, sanitized.length()); assertTrue(sanitized.endsWith("...")); } @Test @DisplayName("Test require non-empty validation") void testRequireNonEmpty() {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/PathValidator.java
if (lowerPath.startsWith(whitelisted) || lowerPath.equals(whitelisted)) { return true; } } return false; } /** * Sanitize path for safe logging */ private String sanitizeForLog(String path) { if (path == null) { return "null"; } // Truncate long paths
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.5K bytes - Viewed (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
public void resetStats() { totalValidations.set(0); failedValidations.set(0); bufferOverflowsPrevented.set(0); integerOverflowsPrevented.set(0); } /** * Sanitize string for safe logging */ private String sanitizeForLog(String str) { if (str == null) { return "null"; } // Truncate long strings
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
cmd/object-handlers.go
if srcObject == "" || srcBucket == "" { writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrInvalidCopySource), r.URL) return } // Sanitize the source object name similar to NewMultipart and PutObject API srcObject = trimLeadingSlash(srcObject) if vid != "" && vid != nullVersionID { _, err := uuid.Parse(vid) if err != nil {Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Sep 07 16:13:09 UTC 2025 - 120.6K bytes - Viewed (0)