Skip to main content

validate_session_id

Function validate_session_id 

Source
pub fn validate_session_id(id: &str) -> Result<(), PersistenceError>
Expand description

Reject ids that could escape the archive root or confuse the journal.

Valid ids are 1-64 ASCII letters, digits, - or _; . and separators are excluded entirely, so .., /, and \ can never appear.