Skip to main content

code_shaped

Function code_shaped 

Source
pub fn code_shaped(s: &str) -> bool
Expand description

BCP-47-ish tag shape gate (ASCII alphanumeric + -, ≤16 chars) — keeps a malformed cookie/query value from poisoning the cache key or a /<code>/ lookup.