Module validation

Module validation 

Source
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