pub fn normalize_path(raw: &str) -> (String, bool)Expand description
Normalize a URL path.
Steps:
- Percent-decode (detecting double-encoding).
- If double-encoded, decode the result a second time.
- NFKC Unicode normalization (fullwidth → ASCII, ligatures → components).
- Strip null bytes.
- Lowercase.
- Resolve
./..segments and collapse consecutive slashes.
Returns (normalized_path, double_encoding_detected).