mirror of https://github.com/fafhrd91/actix-web
chore: Add a doc comment
This commit is contained in:
parent
59360be522
commit
aa764a75f0
|
@ -40,6 +40,7 @@ impl PathBufWrap {
|
||||||
return Err(UriSegmentError::BadChar('/'));
|
return Err(UriSegmentError::BadChar('/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// disallow invalid or suspicious path segments
|
||||||
for segment in path.split('/') {
|
for segment in path.split('/') {
|
||||||
if segment == ".." {
|
if segment == ".." {
|
||||||
segment_count -= 1;
|
segment_count -= 1;
|
||||||
|
|
Loading…
Reference in New Issue