- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 14 for getPath (1.13 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt
* * ```java * String attack = "http://example.com/static/images/../../../../../etc/passwd"; * System.out.println(new URL(attack).getPath()); * System.out.println(new URI(attack).getPath()); * System.out.println(HttpUrl.parse(attack).encodedPath()); * ``` * * By canonicalizing the input paths, they are complicit in directory traversal attacks. Code that
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 63.5K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java
mavenConf = fileSystem.getPath(systemProperties.getProperty(MAVEN_INSTALLATION_CONF)); } else if (systemProperties.getProperty("maven.conf") != null) { mavenConf = fileSystem.getPath(systemProperties.getProperty("maven.conf")); } else if (systemProperties.getProperty(MAVEN_HOME) != null) { mavenConf = fileSystem.getPath(systemProperties.getProperty(MAVEN_HOME), "conf");
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Oct 27 13:24:03 GMT 2025 - 78.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 68.9K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java
* @param accessResultData the access result data containing serialized data * @return the deserialized object */ @Override public Object getData(final AccessResultData<?> accessResultData) { final byte[] data = accessResultData.getData(); if (data != null) { try { return dataSerializer.fromBinaryToObject(data); } catch (final Exception e) {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/test/java/org/codelibs/fess/job/IndexExportJobTest.java
@Test public void test_buildFilePath_questionMarkInPath() { final Path result = indexExportJob.buildFilePath("/export", "https://example.com/page?query=1", new HtmlIndexExportFormatter()); // URI.getPath() returns /page for this URL (query is separate) assertEquals(Path.of("/export/example.com/page.html"), result); } @Test public void test_buildFilePath_longPathComponent() {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Mar 15 09:08:38 GMT 2026 - 66.1K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
case NtStatus.NT_STATUS_PATH_NOT_COVERED: // samba fails to report the proper status for some operations case 0xC00000A2: // NT_STATUS_MEDIA_WRITE_PROTECTED checkReferral(resp, req.getPath(), req); case NtStatus.NT_STATUS_BUFFER_OVERFLOW: break; /* normal for DCERPC named pipes */ case NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED: break; /* normal for NTLMSSP */Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 69.8K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbFileIntegrationTest.java
SmbFile file = new SmbFile(baseUrl + "shared/path/file.txt", context); assertEquals("file.txt", file.getName(), "Name should be extracted correctly"); assertTrue(file.getPath().endsWith("/shared/path/file.txt"), "Path should end correctly"); assertEquals("shared", file.getShare(), "Share should be extracted correctly"); assertNotNull(file.getParent(), "Parent should not be null");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 56K bytes - Click Count (0) -
guava/src/com/google/common/collect/MapMakerInternalMap.java
int hash = original.getHash(); return segmentFor(hash).copyEntry(original, newNext); } int hash(Object key) { int h = keyEquivalence.hash(key); return rehash(h); } void reclaimValue(WeakValueReference<K, V, E> valueReference) { E entry = valueReference.getEntry(); int hash = entry.getHash();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 89.9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MapMakerInternalMap.java
int hash = original.getHash(); return segmentFor(hash).copyEntry(original, newNext); } int hash(Object key) { int h = keyEquivalence.hash(key); return rehash(h); } void reclaimValue(WeakValueReference<K, V, E> valueReference) { E entry = valueReference.getEntry(); int hash = entry.getHash();Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 89.9K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/Hc4HttpClient.java
if (dfos.isInMemory()) { responseData.setResponseBody(dfos.getData()); contentLength = dfos.getData().length; if (contentType == null) { try (InputStream is = new ByteArrayInputStream(dfos.getData())) { contentType = mimeTypeHelper.getContentType(is, url);Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Fri Jan 09 23:46:52 GMT 2026 - 54.4K bytes - Click Count (0)