From aa764a75f0b61ba4ae1c41f5b356d16461e83831 Mon Sep 17 00:00:00 2001 From: AverageHelper Date: Sun, 8 Dec 2024 17:48:56 -0700 Subject: [PATCH] chore: Add a doc comment --- actix-files/src/path_buf.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/actix-files/src/path_buf.rs b/actix-files/src/path_buf.rs index 82b13e30..50b9677e 100644 --- a/actix-files/src/path_buf.rs +++ b/actix-files/src/path_buf.rs @@ -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;