MCPcopy Create free account
hub / github.com/0xcaff/codex-web / safe_path_component

Function safe_path_component

scripts/fetch_updates/fetch_updates.py:25–28  ·  view source on GitHub ↗
(value: str)

Source from the content-addressed store, hash-verified

23
24
25def safe_path_component(value: str) -> str:
26 if "/" in value or "\0" in value:
27 raise ValueError(f"Unexpected path separator in component: {value!r}")
28 return value
29
30
31def verify_sparkle_signature(data: bytes, signature: str) -> None:

Callers 2

process_itemFunction · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected