diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/config.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs index 50b7343..0959e81 100644 --- a/src/config.rs +++ b/src/config.rs @@ -241,7 +241,7 @@ impl MiniserveConfig { v.iter() .map(|p| { sanitize_path(p, false) - .map(|p| p.display().to_string().replace("\\", "/")) + .map(|p| p.display().to_string().replace('\\', "/")) .ok_or(anyhow!("Illegal path {p:?}: upward traversal not allowed")) }) .collect() |