Skip to content

Commit 1a0b1d0

Browse files
committed
remove utf8 conversion
1 parent 74447ea commit 1a0b1d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/filesystem.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ impl FileSystem {
122122
status: actix_web::http::StatusCode::FORBIDDEN,
123123
});
124124
}
125-
if c.to_str().map_or(false, |s| s.starts_with('.')) {
125+
if c.as_encoded_bytes().starts_with(b".") {
126126
anyhow::bail!(ErrorWithStatus {
127127
status: actix_web::http::StatusCode::FORBIDDEN,
128128
});

0 commit comments

Comments
 (0)