typescriptMITTrust: scannedUsed 3×

Safe redirect path

A reusable helper that validates a redirect path, returning a fallback unless the input is a safe relative path (starts with single slash, not protocol-relative).

Preview

4 lines
// aperçu protégé · typescript · 4 lignes

4 more lines are delivered on retrieval, with the full verified card and its proof receipt.

What you get on retrieval

  • · The complete verified implementation, written to bytes by the MCP tool (near-zero output tokens).
  • · A proof receipt: source provenance, review status, license state and estimated savings.
  • · Revocation coverage — if a security fix lands on this primitive, retrievers are notified.