- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 23 for sanitize (0.05 seconds)
-
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) -
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) -
src/main/java/jcifs/util/PathValidator.java
if (lowerPath.startsWith(whitelisted) || lowerPath.equals(whitelisted)) { return true; } } return false; } /** * Sanitize path for safe logging */ private String sanitizeForLog(String path) { if (path == null) { return "null"; } // Truncate long paths
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 14.5K bytes - Click Count (0) -
README.md
[](https://min.io) MinIO is a high-performance, S3-compatible object storage solution released under the GNU AGPL v3.0 license.
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Thu Feb 12 20:18:48 GMT 2026 - 8.8K bytes - Click Count (0) -
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) -
src/main/java/jcifs/util/ServerResponseValidator.java
public void resetStats() { totalValidations.set(0); failedValidations.set(0); bufferOverflowsPrevented.set(0); integerOverflowsPrevented.set(0); } /** * Sanitize string for safe logging */ private String sanitizeForLog(String str) { if (str == null) { return "null"; } // Truncate long strings
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 16.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exec/CrawlerTest.java
// Test that custom sessionId is sanitized Crawler.Options options = new Crawler.Options(); options.sessionId = "test-session-123"; // Simulate what process() does - sanitize sessionId if (options.sessionId != null) { options.sessionId = options.sessionId.replaceAll("-", "_"); } // Check that sessionId was sanitized (hyphens replaced with underscores)Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 30.8K bytes - Click Count (0) -
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) -
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) -
src/main/webapp/js/purify.min.js
tes,e,null)},kt=function e(t){let n=null;const o=St(t);for(Rt(de.beforeSanitizeShadowDOM,t,null);n=o.nextNode();)Rt(de.uponSanitizeShadowNode,n,null),wt(n),vt(n),n.content instanceof s&&e(n.content);Rt(de.afterSanitizeShadowDOM,t,null)};return o.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,i=null,l=null;if(it=!e,it&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Dt(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"...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)