Expand description
Path validation for security
This module provides focused path validation utilities to prevent common security vulnerabilities like path traversal attacks. It follows the principle of doing one thing well rather than trying to cover every possible security scenario.
Functions§
- validate_
file_ extension - Checks if a file extension is allowed
- validate_
path - Validates a path for basic security constraints
- validate_
path_ within - Validates a path and enforces it’s within a base directory