Skip to main content

has_dot_segment

Function has_dot_segment 

Source
pub fn has_dot_segment(path: &str) -> bool
Expand description

Whether a URL path holds a . or .. segment once percent-decoded.

An encoded slash separates segments as a literal one does, so %2e%2E and a%2F.. both count. Only one level of encoding is decoded.