Skip to main content

validate_path_within_root

Function validate_path_within_root 

Source
pub fn validate_path_within_root(
    path: &Path,
    root: &Path,
) -> Result<PathBuf, PathSecurityError>
Expand description

Validate that a path stays within the allowed root directory This prevents directory traversal attacks