Skip to main content

normalize_version

Function normalize_version 

Source
pub fn normalize_version(version: &str) -> Result<String, ProvisionError>
Expand description

A version as a release tag spells it, without the leading v, or a refusal.

The version becomes a path component of the cache and part of a URL, so it must be a plain tag: ASCII letters, digits, ., +, -, starting with a letter or digit, with no ... That rules out every traversal and every flag.