Skip to main content

sanitize_path_component

Function sanitize_path_component 

Source
pub fn sanitize_path_component(component: &str) -> String
Expand description

Sanitize a path component by removing or replacing dangerous characters Allows only alphanumeric characters, hyphens, underscores, and dots