validate_id

Function validate_id 

Source
pub fn validate_id(s: &str) -> Result<(), ValidationError>
Expand description

Validate the author or the app ID.

The ID should have at least one character and may contain only ASCII lowercase letters, ASCII digits, and hyphen.

Without ID validation, an app may use a malformed ID (like “../../../”) to gain access to arbitrary files of other apps, including secrets.

§Errors

Returns ValidationError if any of the validation checks fails.