Skip to main content

validate_shell_arg_safe

Function validate_shell_arg_safe 

Source
pub fn validate_shell_arg_safe(
    s: impl AsRef<[u8]>,
    label: &str,
) -> Result<(), String>
Expand description

Admits only letters, digits, ., /, -, _ and non-ASCII runes (valid UTF-8), the check for a value reaching a shell-form RUN line or a COPY operand.