Skip to main content

normalize_request_path

Function normalize_request_path 

Source
pub fn normalize_request_path(raw: &str) -> Option<String>
Expand description

Normalises a decoded request path, rejecting traversal and control characters. Run before the /__bridge/ routing/auth split so a percent-encoded segment cannot bypass the prefix check.

Returns the percent-decoded path, or None if it is unsafe.