- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 14 for Devil (0.02 seconds)
-
tests/test_openapi_cache_root_path.py
return {"ok": True} # Attacker request with a spoofed root_path attacker_client = TestClient(app, root_path="/evil-api") response1 = attacker_client.get("/openapi.json") data1 = response1.json() assert any(s.get("url") == "/evil-api" for s in data1.get("servers", [])) # Subsequent legitimate request with no root_path clean_client = TestClient(app)Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 24 09:28:10 GMT 2026 - 2.3K bytes - Click Count (0) -
tests/test_swagger_ui_escape.py
from fastapi.openapi.docs import get_swagger_ui_html def test_init_oauth_html_chars_are_escaped(): xss_payload = "Evil</script><script>alert(1)</script>" html = get_swagger_ui_html( openapi_url="/openapi.json", title="Test", init_oauth={"appName": xss_payload}, ) body = html.body.decode() assert "</script><script>" not in body assert "\\u003c/script\\u003e\\u003cscript\\u003e" in body
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Tue Feb 24 09:28:10 GMT 2026 - 1.1K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/collect/SetContainsBenchmark.java
* A microbenchmark that tests the performance of contains() on various Set implementations. * * @author Kevin Bourrillion */ @NullUnmarked public class SetContainsBenchmark { // Start at 4.88 then multiply by 2*2^phi <evil cackle> - The goal is be uniform // yet visit a variety of "values-relative-to-the-next-power-of-2" @Param({"5", "30", "180", "1100", "6900", "43000", "260000"}) // "1600000", "9800000" private int size;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.5K bytes - Click Count (0) -
cmd/postpolicyform_test.go
success: false, }, // duplicate 'expiration' reject {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 12.3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 4.2K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/SampleElements.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 17 15:26:41 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java
* @since 11.0 */ @GwtIncompatible @J2ktIncompatible public class AtomicDoubleArray implements Serializable { private static final long serialVersionUID = 0L; // Making this non-final is the lesser evil according to Effective // Java 2nd Edition Item 76: Write readObject methods defensively. private transient AtomicLongArray longs; /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 8.1K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/job/IndexExportJobTest.java
final Path outsideDir = Files.createTempDirectory("outside"); try { final Path hostDir = tempDir.resolve("evil.com"); Files.createSymbolicLink(hostDir, outsideDir); final Map<String, Object> source = new LinkedHashMap<>(); source.put("url", "http://evil.com/secret.html"); source.put("content", "should not be written outside");
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) -
src/test/java/org/codelibs/fess/helper/MarkdownRendererTest.java
// onerror attribute should be removed assertFalse(result.contains("onerror")); } @Test public void test_render_xss_iframeTag() { String malicious = "<iframe src=\"http://evil.com\"></iframe>"; String result = markdownRenderer.render(malicious); // iframe tags should be removed assertFalse(result.contains("<iframe")); assertFalse(result.contains("</iframe>"));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) -
src/test/java/org/codelibs/fess/app/web/admin/design/AdminDesignActionTest.java
// Test multiple path traversal sequences File baseDir = new File(tempDir.toFile(), "images"); baseDir.mkdirs(); File maliciousFile = new File(baseDir, "a/b/c/../../../../../tmp/evil"); Boolean result = invokeIsValidUploadPath(maliciousFile, baseDir); assertFalse("Multiple path traversals should be blocked", result); } @TestCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 13.6K bytes - Click Count (0)