Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sanitizeForLog (0.36 sec)

  1. src/main/java/jcifs/util/PathValidator.java

                log.warn("Path contains null bytes: {}", sanitizeForLog(path));
                throw new SmbException("Path contains null bytes");
            }
    
            // Check for control characters
            if (strictMode && CONTROL_CHARS.matcher(path).find()) {
                log.warn("Path contains control characters: {}", sanitizeForLog(path));
                throw new SmbException("Path contains control characters");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/ServerResponseValidator.java

            if (path.contains("..") || path.contains("./") || path.contains(".\\")) {
                failedValidations.incrementAndGet();
                log.warn("Path contains traversal sequences: {}", sanitizeForLog(path));
                throw new SmbException("Path contains directory traversal");
            }
    
            // Check individual components
            String[] components = path.split("[/\\\\]");
    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