fix(docs): constrain user runtime links

This commit is contained in:
2026-07-21 18:43:48 +02:00
parent a08bc7c204
commit 2f912ff619
2 changed files with 5 additions and 1 deletions

View File

@@ -102,6 +102,7 @@ class DocsContextTests(unittest.TestCase):
links=(
DocumentationLink(label="Open task", href="/example", kind="runtime"),
DocumentationLink(label="Unsafe runtime", href="javascript:alert(1)", kind="runtime"),
DocumentationLink(label="Backslash runtime", href="/\\evil.invalid", kind="runtime"),
DocumentationLink(label="Public help", href="https://example.invalid/help", kind="public"),
DocumentationLink(label="Repository", href="example/docs/SECRET.md", kind="repository"),
DocumentationLink(label="API", href="/api/v1/example", kind="api"),