Skip to main content

deep_path_collapse

Function deep_path_collapse 

Source
pub fn deep_path_collapse(depth: usize, target: &str) -> String
Expand description

Build a deeply-nested benign path that RFC-3986 collapses to target.

Useful when the WAF has a path-length limit (some cap inspection at 256 or 1024 bytes) — every dot-dot segment beyond the limit is silently ignored, while the origin still resolves to the target.

depth is the number of foo/.. round-trips to insert.