MCPcopy Create free account
hub / github.com/IBM/mcp-cli / test_angle_bracket_rejected

Method test_angle_bracket_rejected

tests/apps/test_security.py:44–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 assert not _SAFE_CSP_SOURCE.match('https://evil.com" onclick=bad()')
43
44 def test_angle_bracket_rejected(self):
45 assert not _SAFE_CSP_SOURCE.match("<script>alert(1)</script>")
46
47 def test_space_injection_rejected(self):
48 assert not _SAFE_CSP_SOURCE.match("evil.com script-src *")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected