Skip to main content

validate_path_component

Function validate_path_component 

Source
pub fn validate_path_component(value: &str, label: &str) -> Result<()>
Expand description

Reject path components that could escape the proposals root.

Disallows empty strings, /, \, and the .. component.