- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 44 for Traversal (0.26 seconds)
-
src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java
return redirect(getClass()); // no-op } /** * Sanitizes a filename by removing path traversal sequences and whitespace. * * @param filename the filename to sanitize * @return the sanitized filename */ public static String sanitizeFilename(final String filename) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Jan 23 23:57:26 GMT 2026 - 5.8K bytes - Click Count (0) -
compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/artifact/FatArtifactTraverser.java
import org.eclipse.aether.graph.Dependency; import static java.util.Objects.requireNonNull; /** * A dependency traverser that excludes the dependencies of fat artifacts from the traversal. Fat artifacts are * artifacts that have the property {@link MavenArtifactProperties#INCLUDES_DEPENDENCIES} set to * {@code true}. * * @see org.eclipse.aether.artifact.Artifact#getProperties()Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.4K bytes - Click Count (0) -
src/main/java/jcifs/util/ServerResponseValidator.java
} // Check for directory traversal 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 componentsCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.6K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/FileUtilTest.java
} /** * Test isPathSafe with path traversal attempt * * @throws Exception */ @Test public void testIsPathSafe_PathTraversalAttempt() throws Exception { final Path baseDir = tempFolder.getRoot().toPath(); final Path traversalPath = baseDir.resolve("../../../etc/passwd"); assertFalse("Path traversal should be blocked", FileUtil.isPathSafe(traversalPath, baseDir));Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 10.3K bytes - Click Count (0) -
src/main/java/jcifs/util/InputValidator.java
"Destination array bounds exceeded: offset=" + dstOffset + ", length=" + length + ", array.length=" + dst.length); } } /** * Validates SMB path to prevent traversal attacks * * @param path the path to validate * @throws IllegalArgumentException if path is invalid */ public static void validateSmbPath(String path) { if (path == null) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 13.5K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/SuccessorsFunction.java
* href="https://en.wikipedia.org/wiki/Graph_(discrete_mathematics)">graph</a>-structured data. * * <p>This interface is meant to be used as the type of a parameter to graph algorithms (such as * breadth first traversal) that only need a way of accessing the successors of a node in a graph. * * <h3>Usage</h3> * * Given an algorithm, for example: * * {@snippet :
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 4.2K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/app/web/admin/log/AdminLogActionTest.java
assertEquals("/etc/passwd.log", AdminLogAction.sanitizeFilename(". ./. ./etc/passwd.log")); } @Test public void test_sanitizeFilename_pathTraversalPatterns() { // Common path traversal attack patterns - multiple slashes are normalized to single assertEquals("/etc/passwd.log", AdminLogAction.sanitizeFilename("../etc/passwd.log"));
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 10.5K bytes - Click Count (0) -
callbacks/preload.go
preloadMap := parsePreloadMap(db.Statement.Schema, preloads) // avoid random traversal of the map preloadNames := make([]string, 0, len(preloadMap)) for key := range preloadMap { preloadNames = append(preloadNames, key) } sort.Strings(preloadNames)
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Sun May 25 07:40:40 GMT 2025 - 11.7K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/ArtifactResolutionRequest.java
this.remoteRepositories = remoteRepositories; return this; } /** * Gets the artifact filter that controls traversal of the dependency graph. * * @return The filter used to determine which of the artifacts in the dependency graph should be traversed or * {@code null} to collect all transitive dependencies. */Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 8.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/PythonJobTest.java
+ "test_script.py"; assertEquals(expectedPath, pythonJob.getPyFilePath()); } // Test getPyFilePath with directory traversal attempt @Test public void test_getPyFilePath_withDirectoryTraversal() { pythonJob.filename("../../malicious.py");
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 22.2K bytes - Click Count (0)