Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 517 for path2 (0.22 sec)

  1. src/main/java/org/codelibs/fess/util/ResourceUtil.java

         */
        public static Path getDictionaryPath(final String... names) {
            return getPath("WEB-INF/", "dict", names);
        }
    
        /**
         * Gets the path to thumbnail files directory.
         *
         * @param names the path components to append to the thumbnails directory
         * @return the Path object pointing to the thumbnails directory
         */
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/FileTransformer.java

        }
    
        /**
         * Gets the base path for storing files.
         *
         * @return the base path
         */
        public String getPath() {
            return path;
        }
    
        /**
         * Sets the base path for storing files.
         *
         * @param path the base path to set
         */
        public void setPath(final String path) {
            this.path = path;
        }
    
        /**
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/PathValidator.java

        }
    
        /**
         * Validate and normalize a path
         *
         * @param path the path to validate
         * @return normalized safe path
         * @throws SmbException if path is invalid or dangerous
         */
        public String validatePath(String path) throws SmbException {
            if (path == null || path.isEmpty()) {
                throw new SmbException("Path cannot be null or empty");
            }
    
            // Check length
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/io/ResourceTraversalTest.java

                try {
                    if (count < 10) {
                        System.out.println(path);
                    }
                    System.out.println(path);
                    assertThat(path, is(notNullValue()));
                    assertThat(path, path.startsWith("junit") || path.startsWith("org/junit") || path.startsWith("org/hamcrest")
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/helper/ViewHelper.java

                return pathLC;
            }
    
            final String pathL = getLocalizedPagePath(page, lang, null);
            final String pL = pageCacheMap.get(pathL);
            if (pL != null) {
                return pL;
            }
            if (existsPage(pathL)) {
                pageCacheMap.put(pathLC, pathL);
                return pathL;
            }
    
            final String path = getLocalizedPagePath(page, null, null);
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Fri Nov 28 16:29:12 UTC 2025
    - 52.6K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/admin/pathmap/CreateForm.java

        public String regex;
    
        /**
         * The replacement pattern for matched paths.
         */
        @Size(max = 1000)
        public String replacement;
    
        /**
         * The processing type for path mapping.
         */
        @Required
        public String processType;
    
        /**
         * The sort order for this path mapping (0-2147483647).
         */
        @Required
        @Min(value = 0)
        @Max(value = 2147483647)
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/io/FileUtilTest.java

        }
    
        /**
         * Test isPathSafe with path outside base directory
         *
         * @throws Exception
         */
        @Test
        public void testIsPathSafe_PathOutsideBase() throws Exception {
            final Path baseDir = tempFolder.getRoot().toPath();
            final Path outsidePath = Paths.get("/tmp/outside.txt");
    
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java

            if (StringUtil.isNotBlank(logFilePath) && isLogFilename(filename)) {
                final Path path = Paths.get(logFilePath, filename);
                return asStream(filename).contentTypeOctetStream().stream(out -> {
                    try (InputStream in = Files.newInputStream(path)) {
                        out.write(in);
                    }
                });
            }
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/web/api/admin/log/ApiAdminLogAction.java

            if (StringUtil.isNotBlank(logFilePath) && isLogFilename(filename)) {
                final Path path = Paths.get(logFilePath, filename);
                return asStream(filename).contentTypeOctetStream().stream(out -> {
                    try (InputStream in = Files.newInputStream(path)) {
                        out.write(in);
                    }
                });
            }
            return StreamResponse.asEmptyBody();
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/io/FileUtil.java

         * <pre>
         * Path baseDir = Paths.get("/var/app/data");
         * Path userPath = Paths.get(userInput);
         * if (!FileUtil.isPathSafe(userPath, baseDir)) {
         *     throw new SecurityException("Path traversal attempt detected");
         * }
         * </pre>
         *
         * @param pathToCheck the path to validate (must not be {@literal null})
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat Nov 22 11:21:59 UTC 2025
    - 13.1K bytes
    - Viewed (0)
Back to top