Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 6 of 6 for asterisks (0.04 seconds)

  1. src/main/java/org/codelibs/fess/app/service/FessAppService.java

         * This method ensures that the query string is surrounded by asterisks (*)
         * to support prefix and suffix matching in search operations.
         *
         * @param query the query string to wrap with wildcards
         * @return the wrapped query string with leading and trailing asterisks
         */
        protected static String wrapQuery(final String query) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/helper/MarkdownRendererTest.java

        }
    
        @Test
        public void test_render_escapedCharacters() {
            String markdown = "\\*not italic\\*";
            String result = markdownRenderer.render(markdown);
            // Escaped asterisks should not be converted to italics
            assertFalse(result.contains(""));
        }
    
        @Test
        public void test_render_strikethrough() {
            // Note: This depends on whether the extension is enabled
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 11.1K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/mylasta/direction/FessPropTest.java

            // Normal username
            assertEquals("cn=admin,dc=example,dc=com", fessConfig.getLdapSecurityPrincipal("admin"));
    
            // Asterisk injection attempt
            assertEquals("cn=admin\\2a,dc=example,dc=com", fessConfig.getLdapSecurityPrincipal("admin*"));
    
            // Parentheses injection attempt
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 25.4K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/fess/app/web/admin/design/UploadForm.java

         */
        @Required
        public MultipartFormFile designFile;
    
        /**
         * The name for the design file being uploaded.
         * Must not contain invalid file system characters like backslash, colon, asterisk, etc.
         */
        @Pattern(regexp = "^[^\\\\|/|:|\\*|?|\"|<|>|\\|]+$", message = "{errors.design_file_name_is_invalid}")
        public String designFileName;
    
        /**
         * Default constructor for UploadForm.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/ldap/LdapManagerTest.java

        }
    
        @Test
        public void test_escapeLDAPSearchFilter_withAsterisk() {
            LdapManager ldapManager = new LdapManager();
            ldapManager.init();
    
            // Asterisk should be escaped to \2a (prevents wildcard injection)
            assertEquals("\\2a", ldapManager.escapeLDAPSearchFilter("*"));
            assertEquals("user\\2a", ldapManager.escapeLDAPSearchFilter("user*"));
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.9K bytes
    - Click Count (0)
  6. src/main/java/org/codelibs/fess/query/TermQueryCommand.java

            context.addHighlightedQuery(text);
            return QueryBuilders.wildcardQuery(urlField, queryString).boost(boost);
        }
    
        /**
         * Converts a term query ending with asterisk to a prefix query.
         *
         * @param fessConfig the Fess configuration
         * @param context the query context
         * @param termQuery the term query to convert
         * @param boost the boost value to apply
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 13.6K bytes
    - Click Count (0)