Skip to main content

sanitize_session_id

Function sanitize_session_id 

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

Sanitize a session ID for safe use in filenames and socket paths. Rejects path separators, .., and non-printable characters. Returns the sanitized string (replaces unsafe chars with _).