Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for encodeUrlFilter (0.05 seconds)

  1. src/main/java/org/codelibs/fess/helper/SystemHelper.java

        }
    
        /**
         * Encodes a URL path for filtering.
         *
         * @param path The path to encode.
         * @return The encoded path.
         */
        public String encodeUrlFilter(final String path) {
            if (filterPathEncoding == null || path == null) {
                return path;
            }
    
            try {
                final StringBuilder buf = new StringBuilder(path.length() + 100);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 43.2K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/helper/SystemHelperTest.java

            String path = null;
            assertNull(systemHelper.encodeUrlFilter(path));
    
            path = "abc";
            assertEquals(path, systemHelper.encodeUrlFilter(path));
    
            path = "あいう";
            assertEquals("%E3%81%82%E3%81%84%E3%81%86", systemHelper.encodeUrlFilter(path));
    
            path = "[]^$.*+?,{}|%\\";
            assertEquals(path, systemHelper.encodeUrlFilter(path));
    
            systemHelper.filterPathEncoding = null;
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 44.4K bytes
    - Click Count (0)
Back to Top