aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/renderer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index b98a595..38d2617 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -44,7 +44,7 @@ pub fn page(
|| conf
.allowed_upload_dir
.iter()
- .any(|x| encoded_dir.starts_with(&format!("/{}", x.display())));
+ .any(|x| encoded_dir.starts_with(&format!("/{}", x)));
html! {
(DOCTYPE)