diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index e82cfae..a08d192 100644 --- a/src/main.rs +++ b/src/main.rs @@ -348,7 +348,7 @@ async fn build_response<C: Controller>( let mut comps = Vec::new(); // prevent directory traversal attacks - for comp in Utf8Path::new(&*unsanitized_path).components() { + for comp in Utf8Path::new(unsanitized_path).components() { match comp { Utf8Component::Normal(name) => comps.push(name), Utf8Component::ParentDir => { |