Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for asterisks (0.12 seconds)

  1. 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)
  2. 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)
  3. 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)
  4. 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)