Skip to main content

sanitize_path_component

Function sanitize_path_component 

Source
fn sanitize_path_component(raw: &str) -> String
Expand description

Lowercase + sanitize a single path component (agent name or channel id) to alphanumeric/dash/underscore only, preventing path traversal and matching ReactiveHandler’s lowercase key convention.