Skip to main content

Crate perl_lsp_input_validation

Crate perl_lsp_input_validation 

Source
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.