mirror of
https://github.com/actix/actix-web.git
synced 2025-03-28 13:55:28 +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('/'));
|
||||
}
|
||||
|
||||
// disallow invalid or suspicious path segments
|
||||
for segment in path.split('/') {
|
||||
if segment == ".." {
|
||||
segment_count -= 1;
|
||||
|
|
Loading…
Reference in a new issue