Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for sanitized (0.12 sec)

  1. 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)
  2. 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)
  3. src/test/java/org/codelibs/fess/exec/CrawlerTest.java

            // Test that custom sessionId is sanitized
            Crawler.Options options = new Crawler.Options();
            options.sessionId = "test-session-123";
    
            // Simulate what process() does - sanitize sessionId
            if (options.sessionId != null) {
                options.sessionId = options.sessionId.replaceAll("-", "_");
            }
    
            // Check that sessionId was sanitized (hyphens replaced with underscores)
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  4. 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)
  5. 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)
Back to top