Skip to main content

is_safe_asset_id

Function is_safe_asset_id 

Source
fn is_safe_asset_id(id: &str) -> bool
Expand description

true if id is a safe single filename component: non-empty, within the length cap, and only [a-z0-9._-] (no path separators, no traversal).