- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for normalizePath (1.12 sec)
-
src/main/java/org/codelibs/fess/helper/LabelTypeHelper.java
} else { buf.append(split); } final String normalizePath = systemHelper.normalizeConfigPath(path); if (StringUtil.isNotBlank(normalizePath)) { buf.append(normalizePath); } } this.includedPaths = Pattern.compile(buf.toString()); }Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Nov 28 16:29:12 UTC 2025 - 14.8K bytes - Viewed (0) -
src/main/java/jcifs/util/PathValidator.java
*/ public void addToBlacklist(String path) { blacklistedPaths.add(normalizePath(path).toLowerCase()); } /** * Add path to whitelist * * @param path path or pattern to whitelist */ public void addToWhitelist(String path) { whitelistedPaths.add(normalizePath(path).toLowerCase()); } /** * Check if path is blacklisted */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.5K bytes - Viewed (0) -
src/test/java/jcifs/util/PathValidatorTest.java
String normalizedPath = noUncValidator.validatePath("\\\\\\\\server\\\\\\\\share"); assertEquals("\\server\\share", normalizedPath); normalizedPath = noUncValidator.validatePath("////server//share"); assertEquals("\\server\\share", normalizedPath); // To properly test UNC rejection, we would need to fix the normalization logic
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.6K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/FileUtil.java
assertArgumentNotNull("pathToCheck", pathToCheck); assertArgumentNotNull("baseDirectory", baseDirectory); final Path normalizedPath = pathToCheck.toAbsolutePath().normalize(); final Path normalizedBase = baseDirectory.toAbsolutePath().normalize(); return normalizedPath.startsWith(normalizedBase); } /** * Validates that a given file is safe and does not attempt path traversal attacks.
Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Nov 22 11:21:59 UTC 2025 - 13.1K bytes - Viewed (0)