- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for normalizePath (0.34 seconds)
-
src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java
if (path != null && path.startsWith("/../")) { String normalizedPath = path; while (normalizedPath.startsWith("/../")) { normalizedPath = normalizedPath.substring(3); } if (!normalizedPath.startsWith("/")) { normalizedPath = "/" + normalizedPath; }
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 12 01:46:45 GMT 2026 - 55.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/base/FessAdminAction.java
throw new IllegalArgumentException("File path cannot be blank."); } try { final Path filePath = Paths.get(path).normalize(); final String normalizedPath = filePath.toString(); if (normalizedPath.contains("..")) { throw new IllegalArgumentException("Invalid file path: path=" + path); } final File file = filePath.toFile();
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 19 13:57:12 GMT 2026 - 10.9K bytes - Click Count (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.
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Feb 12 12:10:45 GMT 2026 - 13.2K bytes - Click Count (0)