Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for normalizePath (0.17 seconds)

  1. 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());
                }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 14.8K bytes
    - Click Count (0)
  2. 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
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  3. 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)
  4. 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)
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Mon Apr 28 14:56:52 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  5. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/precommit/LicenseHeadersPrecommitPluginFuncTest.groovy

     */
    
     package org.acme;
     public class DualLicensed {
     }
     """
        }
    
        private String packageString(File sourceFile) {
            String normalizedPath = normalized(sourceFile.getPath())
            (normalizedPath.substring(normalizedPath.indexOf("src/main/java")) - "src/main/java/" - ("/" + sourceFile.getName())).replaceAll("/", ".")
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 03 10:22:28 GMT 2021
    - 4.1K bytes
    - Click Count (0)
  6. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.6K bytes
    - Click Count (0)
  7. 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)
  8. 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)
  9. src/main/webapp/js/bootstrap.min.js.map

    (const key of bsKeys) {\n      let pureKey = key.replace(/^bs/, '')\n      pureKey = pureKey.charAt(0).toLowerCase() + pureKey.slice(1, pureKey.length)\n      attributes[pureKey] = normalizeData(element.dataset[key])\n    }\n\n    return attributes\n  },\n\n  getDataAttribute(element, key) {\n    return normalizeData(element.getAttribute(`data-bs-${normalizeDataKey(key)}`))\n  }\n}\n\nexport default Manipulator\n","/**\n * --------------------------------------------------------------------------\n...
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Jan 12 06:14:02 GMT 2025
    - 211.9K bytes
    - Click Count (0)
Back to Top