- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 31 for sanitize (0.06 seconds)
-
src/main/java/org/codelibs/fess/job/IndexExportJob.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Mar 26 02:24:08 GMT 2026 - 10.8K bytes - Click Count (0) -
src/test/java/jcifs/util/InputValidatorTest.java
// Test long string truncation String longString = "a".repeat(1100); String sanitized = InputValidator.sanitizeForLogging(longString); assertEquals(1000, sanitized.length()); assertTrue(sanitized.endsWith("...")); } @Test @DisplayName("Test require non-empty validation") void testRequireNonEmpty() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 11.9K bytes - Click Count (0) -
cmd/http-tracer.go
func redactLDAPPwd(s string) string { parts := ldapPwdRegex.FindStringSubmatch(s) if len(parts) > 3 { return parts[1] + "LDAPPassword=*REDACTED*" + parts[3] } return s } // getOpName sanitizes the operation name for mc func getOpName(name string) (op string) { op = strings.TrimPrefix(name, "github.com/minio/minio/cmd.") op = strings.TrimSuffix(op, "Handler-fm") op = strings.Replace(op, "objectAPIHandlers", "s3", 1)
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Tue Sep 24 17:13:00 GMT 2024 - 6K bytes - Click Count (0) -
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) -
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) -
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) -
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) -
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) -
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) -
android/guava/src/com/google/common/util/concurrent/Monitor.java
return (startTime == 0L) ? 1L : startTime; } } /** * Returns the remaining nanos until the given timeout, or 0L if the timeout has already elapsed. * Caller must have previously sanitized timeoutNanos using toSafeNanos. */ private static long remainingNanos(long startTime, long timeoutNanos) { // assert timeoutNanos == 0L || startTime != 0L;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jan 28 22:39:02 GMT 2026 - 43.5K bytes - Click Count (0)