mirror of
https://github.com/actix/actix-web.git
synced 2025-04-26 11:24:43 +00:00
chore: Add a doc comment
This commit is contained in:
parent
59360be522
commit
aa764a75f0
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue