Skip to main content

IsPortableEnvName

Function IsPortableEnvName 

Source
fn IsPortableEnvName(Name: &str) -> bool
Expand description

Reject keys with characters outside the portable POSIX set so a hostile rc-file can’t sneak shell metacharacters into our env via a crafted Key= line. Standard env-var names are [A-Za-z_][A-Za-z0-9_]*; anything else is dropped silently.