- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for normalizePath (1.36 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) -
build-logic/binary-compatibility/src/main/kotlin/gradlebuild/binarycompatibility/sources/SourcesRepository.kt
private val KtFile.normalizedPath: String? get() = virtualFile.canonicalPath?.let { normaliseFileSeparators(it) } private val ApiSourceFile.normalizedPath: String get() = normaliseFileSeparators(currentFile.canonicalPath)Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Mon Apr 28 14:56:52 UTC 2025 - 4.1K 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/fess/app/web/base/FessAdminAction.java
throw new IllegalArgumentException("File path cannot be empty"); } try { final Path filePath = Paths.get(path).normalize(); final String normalizedPath = filePath.toString(); if (normalizedPath.contains("..")) { throw new IllegalArgumentException("Invalid file path"); } final File file = filePath.toFile();
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Nov 27 07:01:25 UTC 2025 - 9.7K 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) -
src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java
logger.warn("Could not parse a value of {}:{}", entry.getKey(), entry.getValue(), e); } } dataMap = processAdditionalData(dataMap, responseData, document); normalizeData(responseData, dataMap); try { resultData.setRawData(dataMap); resultData.setSerializer(dataSerializer::fromObjectToBinary); } catch (final Exception e) {
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Fri Dec 12 13:58:40 UTC 2025 - 54.6K bytes - Viewed (0)