Skip to main content

safe_path

Function safe_path 

Source
pub fn safe_path(path: &str) -> bool
Expand description

Whether path is safe to join to a destination directory: at most MAX_TARGET bytes, relative, /-separated, with no empty, . or .. component, no backslash, no NUL and no ignorable code point.