Skip to main content

validate_rel_path

Function validate_rel_path 

Source
pub fn validate_rel_path(path: &str) -> Result<String, &'static str>
Expand description

Normalize and validate a virtual path from the URL.

Rejects absolute paths, .. segments, NUL bytes and empty segments.