Skip to main content

is_valid_tenant_segment

Function is_valid_tenant_segment 

Source
pub fn is_valid_tenant_segment(tenant: &str) -> bool
Expand description

Return whether tenant is one non-empty MoQ path segment.

This validation is security-sensitive: moq_net::Path::new normalizes an empty or slash-only string to the empty path, and an empty prefix is a wildcard matching every broadcast. Tenant-derived scopes must therefore reject empty and multi-segment values before constructing a [Path].