- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for backslashes (0.05 sec)
-
src/test/java/jcifs/util/PathValidatorTest.java
// To properly test UNC rejection, we would need to fix the normalization logic // to preserve the leading double backslash for UNC paths } @Test public void testInvalidUncPath() throws Exception { // Due to normalization removing duplicate backslashes, true UNC validation doesn't work // These tests validate current behavior where problematic paths are caught by other checks
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/GsaConfigParser.java
return Pattern.quote(s.substring(0, s.length() - 1)) + "$"; } return Pattern.quote(s); } /** * Unescapes double backslashes in regex patterns. * Converts escaped backslashes (\\) back to single backslashes (\). * * @param s the string to unescape * @return the unescaped string */ protected String unescape(final String s) {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Aug 07 03:06:29 UTC 2025 - 21.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralRequestBufferTest.java
assertEquals(buffer.size(), bytesEncoded); assertEquals(4 + 2 * path.length(), bytesEncoded); } @Test @DisplayName("Should handle path with only backslashes") void testPathWithOnlyBackslashes() { String path = "\\\\\\\\\\\\"; buffer = new DfsReferralRequestBuffer(path, 2); byte[] dst = new byte[buffer.size()];
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/internal/dfs/DfsReferralDataImplTest.java
assertEquals(expectedPath.isEmpty() ? "" : expectedPath, result.getPath()); } @Test @DisplayName("Should handle path with multiple backslashes") void testPathWithMultipleBackslashes() { when(mockReferral.getTtl()).thenReturn(300); when(mockReferral.getRFlags()).thenReturn(0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 30.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateRequestTest.java
request.setPath("third\\path\\"); assertEquals("\\third\\path", request.getPath()); // Multiple leading backslashes - only first one gets stripped, then trailing ones get stripped // But getPath() adds a backslash at the beginning, so \\fourth\path\\ becomes \fourth\path\ request.setPath("\\\\fourth\\path\\\\"); assertEquals("\\\\fourth\\path\\", request.getPath());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 18.6K bytes - Viewed (0) -
ci/official/utilities/extract_resultstore_links.py
else 0) while k > bazel_comm_min_line_i: backtrack_line = log_lines[k] # Don't attempt to parse multi-line commands broken up by backslashes if 'bazel ' in backtrack_line and not backtrack_line.endswith('\\'): bazel_line = BAZEL_COMMAND_RE.search(backtrack_line) if bazel_line: lines['command'] = bazel_line.group('command')
Registered: Tue Sep 09 12:39:10 UTC 2025 - Last Modified: Wed Nov 08 17:50:27 UTC 2023 - 10.9K bytes - Viewed (0) -
src/archive/zip/reader.go
} // OpenReader will open the Zip file specified by name and return a ReadCloser. // // If any file inside the archive uses a non-local name // (as defined by [filepath.IsLocal]) or a name containing backslashes // and the GODEBUG environment variable contains `zipinsecurepath=0`, // OpenReader returns the reader with an ErrInsecurePath error. // A future version of Go may introduce this behavior by default.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Mar 11 22:19:38 UTC 2025 - 28.4K bytes - Viewed (0) -
src/main/java/jcifs/util/PathValidator.java
} } return false; } /** * Normalize a path */ private String normalizePath(String path) { // Replace forward slashes with backslashes for consistency String normalized = path.replace('/', '\\'); // Remove duplicate slashes normalized = normalized.replaceAll("\\\\+", "\\\\");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 14.5K bytes - Viewed (0) -
src/cmd/asm/internal/lex/input.go
} args = append(args, arg) acceptArg = false default: in.Error("bad definition for macro:", name) } } } var tokens []Token // Scan to newline. Backslashes escape newlines. for tok != '\n' { if tok == scanner.EOF { in.Error("missing newline in definition for macro:", name) } if tok == '\\' { tok = in.Stack.Next() if tok != '\n' && tok != '\\' {
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Sep 06 13:17:27 UTC 2024 - 12.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java
when(dr.getPathConsumed()).thenReturn(2); // consume leading \\ from UNC String newUnc = l.handleDFSReferral(dr, "\\req\\"); // dunc is "\\" + path + remaining - note: path may not have leading backslashes assertTrue(newUnc.contains("dfs/path") || newUnc.contains("dfs\\path")); assertEquals(dr, l.getDfsReferral()); assertEquals("dfs-server", l.getServerWithDfs());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0)