Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 18 of 18 for sanitizeFn (0.19 seconds)

  1. 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)
  2. src/main/webapp/js/purify.min.js

    e=e.toString()))throw S("dirty is not a string, aborting")}if(!o.isSupported)return e;if(Fe||Tt(t),o.removed=[],"string"==typeof e&&(qe=!1),qe){if(e.nodeName){const t=ft(e.nodeName);if(!Ne[t]||Oe[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof D)n=bt("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),r.nodeType===J&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Be&&!Ue&&!Pe&&-1===e.indexOf("<"))return le&&We?le.createHTML(e):e...
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 06:21:57 GMT 2026
    - 22.7K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/llm/AbstractLlmClient.java

                return text;
            }
            return text.replaceAll("<[^>]+>", "");
        }
    
        /**
         * Sanitizes document content by escaping delimiter-like sequences
         * to prevent boundary spoofing in LLM prompts.
         *
         * @param text the text to sanitize
         * @return the sanitized text with delimiter sequences escaped
         */
        protected String sanitizeDocumentContent(final String text) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 72K bytes
    - Click Count (0)
  4. 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)
  5. src/main/java/org/codelibs/fess/chat/ChatClient.java

                }
                sb.append(c);
            }
            return sb.toString();
        }
    
        /**
         * Renders markdown text to sanitized HTML.
         *
         * @param markdown the markdown text
         * @return sanitized HTML
         */
        protected String renderMarkdownToHtml(final String markdown) {
            if (markdownRenderer == null || !markdownRenderer.isInitialized()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 56.6K bytes
    - Click Count (0)
  6. src/main/webapp/js/admin/plugins/form-validator/jquery.form-validator.min.js

    er",validatorFunction:function(a,b,c){if(""!==a){var d,e,f=b.valAttr("allowing")||"",g=b.valAttr("decimal-separator")||c.decimalSeparator,h=!1,i=b.valAttr("step")||"",j=!1,k=b.attr("data-sanitize")||"",l=k.match(/(^|[\s])numberFormat([\s]|$)/i);if(l){if(!window.numeral)throw new ReferenceError("The data-sanitize value numberFormat cannot be used without the numeral library. Please see Data Validation in http://www.formvalidator.net for more information.");a.length&&(a=String(numeral().unformat(a...
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Jan 01 05:12:47 GMT 2018
    - 32.8K bytes
    - Click Count (0)
  7. 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)
  8. src/test/java/org/codelibs/fess/job/IndexExportJobTest.java

            assertTrue(result.toString().endsWith(".html"));
        }
    
        @Test
        public void test_buildFilePath_colonInFilename() {
            // Colon is valid in URI path but should be sanitized in filesystem path
            final Path result =
                    indexExportJob.buildFilePath("/export", "https://example.com/path/file%3Aname.html", new HtmlIndexExportFormatter());
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sun Mar 15 09:08:38 GMT 2026
    - 66.1K bytes
    - Click Count (0)
Back to Top