Function has_path_traversal
Source pub fn has_path_traversal(path: &str) -> bool
Expand description
Detects raw or percent-encoded path traversal (.., %2e%2e), backslashes, or NUL bytes via 8-byte SWAR scanning.
§Arguments
&str - Incoming URL path.
§Returns
bool - true when a suspicious path-traversal sequence is present.