Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 28 for sanitizer (0.1 seconds)

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

            if (logger.isDebugEnabled()) {
                logger.debug("MarkdownRenderer initialized with commonmark and OWASP sanitizer");
            }
        }
    
        /**
         * Renders markdown text to sanitized HTML.
         *
         * @param markdown the markdown text to render
         * @return sanitized HTML string
         */
        public String render(final String markdown) {
            if (markdown == null || markdown.isEmpty()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Jan 12 10:32:40 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  2. src/test/java/org/codelibs/fess/helper/MarkdownRendererTest.java

        @Test
        public void test_render_xss_scriptTag() {
            String malicious = "<script>alert('XSS')</script>";
            String result = markdownRenderer.render(malicious);
            // Script tags should be removed by sanitizer
            assertFalse(result.contains("<script>"));
            assertFalse(result.contains("</script>"));
        }
    
        @Test
        public void test_render_xss_onclickAttribute() {
    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. pom.xml

    			<artifactId>commonmark-ext-gfm-tables</artifactId>
    			<version>0.24.0</version>
    		</dependency>
    		<dependency>
    			<groupId>com.googlecode.owasp-java-html-sanitizer</groupId>
    			<artifactId>owasp-java-html-sanitizer</artifactId>
    			<version>20260101.1</version>
    		</dependency>
    
    		<!-- test -->
    		<dependency>
    			<groupId>org.junit.jupiter</groupId>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 07:04:54 GMT 2026
    - 49.9K bytes
    - Click Count (0)
  4. src/main/webapp/js/chat.js

         */
        function scrollToBottom() {
            elements.chatMessages.scrollTop(elements.chatMessages[0].scrollHeight);
        }
    
        /**
         * Render Markdown text to sanitized HTML.
         * Policy is aligned with server-side MarkdownRenderer (OWASP sanitizer).
         */
        var markdownDomPurifyInitialized = false;
        var markdownSanitizeConfig = {
            ALLOWED_TAGS: ['h1','h2','h3','h4','h5','h6',
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 19 01:36:02 GMT 2026
    - 30.6K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

       *
       * Fundamentally, there's not really anything we can do about that. In the unlikely event that it
       * comes up in practice (maybe through some kind of sanitizer-like testing that intentionally
       * inflicts spurious interrupts on us?), we might have to accept some flakiness or disable some
       * tests, at least under whichever environment (JRE or Android) we see such problems.
       */
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

       *
       * Fundamentally, there's not really anything we can do about that. In the unlikely event that it
       * comes up in practice (maybe through some kind of sanitizer-like testing that intentionally
       * inflicts spurious interrupts on us?), we might have to accept some flakiness or disable some
       * tests, at least under whichever environment (JRE or Android) we see such problems.
       */
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 38.1K bytes
    - Click Count (0)
  7. src/main/webapp/js/admin/bootstrap.min.js.map

    regExp.length; i < len; i++) {\n    if (regExp[i].test(attrName)) {\n      return true\n    }\n  }\n\n  return false\n}\n\nexport function sanitizeHtml(unsafeHtml, whiteList, sanitizeFn) {\n  if (unsafeHtml.length === 0) {\n    return unsafeHtml\n  }\n\n  if (sanitizeFn && typeof sanitizeFn === 'function') {\n    return sanitizeFn(unsafeHtml)\n  }\n\n  const domParser = new window.DOMParser()\n  const createdDocument = domParser.parseFromString(unsafeHtml, 'text/html')\n  const whitelistKeys = Object.keys(whiteList)\n...
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Oct 26 01:49:09 GMT 2024
    - 180.9K bytes
    - Click Count (0)
  8. src/main/webapp/js/bootstrap.min.js.map

    e.js'\nimport Config from './config.js'\nimport { DefaultAllowlist, sanitizeHtml } from './sanitizer.js'\nimport { execute, getElement, isElement } from './index.js'\n\n/**\n * Constants\n */\n\nconst NAME = 'TemplateFactory'\n\nconst Default = {\n  allowList: DefaultAllowlist,\n  content: {}, // { selector : text ,  selector2 : text2 , }\n  extraClass: '',\n  html: false,\n  sanitize: true,\n  sanitizeFn: null,\n  template: '<div></div>'\n}\n\nconst DefaultType = {\n  allowList: 'object',\n  content:...
    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)
  9. src/main/java/org/codelibs/fess/app/web/admin/log/AdminLogAction.java

            return redirect(getClass()); // no-op
        }
    
        /**
         * Sanitizes a filename by removing path traversal sequences and whitespace.
         *
         * @param filename the filename to sanitize
         * @return the sanitized filename
         */
        public static String sanitizeFilename(final String filename) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 23 23:57:26 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  10. src/main/java/jcifs/util/InputValidator.java

            }
            // Remove control characters and limit length
            String sanitized = input.replaceAll("[\\x00-\\x1f]", "");
            if (sanitized.length() > 1000) {
                sanitized = sanitized.substring(0, 997) + "...";
            }
            return sanitized;
        }
    
        /**
         * Validates that a value is within the specified range
         *
         * @param value the value to check
         * @param min minimum value (inclusive)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 13.5K bytes
    - Click Count (0)
Back to Top