Expand description
Input validation and sanitization utilities for production hardening.
Functions§
- sanitize_
string - Sanitizes a string by removing potentially dangerous characters.
- validate_
file_ content - Validates file content before parsing to prevent resource exhaustion.
- validate_
file_ path - Validates and sanitizes a file path to prevent path traversal attacks.
- validate_
lsp_ request - Validates LSP request parameters to ensure they’re safe.
- validate_
workspace_ root - Validates workspace root to ensure it’s safe.