1
0
Fork 0
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:
AverageHelper 2024-12-08 17:48:56 -07:00
parent 59360be522
commit aa764a75f0
No known key found for this signature in database
GPG key ID: F2D4E0462A058DCB

View file

@ -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;