Skip to main content

validate_clean_path

Function validate_clean_path 

Source
pub fn validate_clean_path(path: &str, field: &str) -> Result<(), String>
Expand description

Validates a config path, rejecting . and .. components.

Absolute paths are accepted. Use validate_relative_path for paths that have to stay under a Steel-owned root.