From 368e99da325b29cb51ae19456f348e4f8358003f Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 26 Nov 2024 08:25:14 +0100 Subject: [PATCH] Added message. --- src/rupload/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rupload/app.py b/src/rupload/app.py index ab77c72..20413fe 100644 --- a/src/rupload/app.py +++ b/src/rupload/app.py @@ -280,6 +280,8 @@ async def handle_index(request: web.Request): message = message[: message.find("here: ") + len("here: ")] message += f'' message += f"{url}" + if not message: + message = "Any file type is allowed thus also binary/executable or source files." if message: message += "

" html_content = html_content.replace("[message]", message)