From e0b5a3fc65ca77d25db97cd426a069ba880c2ad3 Mon Sep 17 00:00:00 2001 From: neri Date: Sat, 23 Jul 2022 15:02:13 +0200 Subject: [PATCH] fix unlimited max file size template render --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/template.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 2da76e6..53daf14 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -403,7 +403,7 @@ dependencies = [ [[package]] name = "datatrash" -version = "1.1.4" +version = "1.1.5" dependencies = [ "actix-files", "actix-multipart", diff --git a/Cargo.toml b/Cargo.toml index c9857ec..8f4f59d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "datatrash" -version = "1.1.4" +version = "1.1.5" authors = ["neri"] edition = "2021" diff --git a/src/template.rs b/src/template.rs index 7982029..0046fa6 100644 --- a/src/template.rs +++ b/src/template.rs @@ -52,7 +52,7 @@ fn build_index_html(config: &Config) -> String { .replace("{max_size_snippet}", MAX_SIZE_SNIPPET_HTML.trim_end()) .replace("{max_size}", &render_file_size(max_file_size)); } else { - html = html.replace("{max_size_snippet}", MAX_SIZE_SNIPPET_HTML.trim_end()) + html = html.replace("{max_size_snippet}", "") }; html }