Module path_validation

Module path_validation 

Source
Expand description

Path validation utilities to prevent path traversal attacks

Functions§

sanitize_filename
Sanitize a filename to prevent issues with special characters
validate_config_path
Validate and canonicalize a path to ensure it’s within allowed boundaries Handles both existing and non-existing paths for security validation