Skip to main content

normalize_path

Function normalize_path 

Source
pub fn normalize_path(raw: &str, target_host: &str) -> Option<String>
Expand description

Normalise a raw path candidate into a clean /foo/bar string. Returns None if the path is empty, crosses origins, or is unusable.