From 36ef6d7e4dbae70b21b511298e1885ed8e611dc6 Mon Sep 17 00:00:00 2001 From: retoor Date: Tue, 26 Nov 2024 06:56:12 +0100 Subject: [PATCH] Fix upload url replacement. --- src/rupload/app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rupload/app.py b/src/rupload/app.py index f04d52e..1686607 100644 --- a/src/rupload/app.py +++ b/src/rupload/app.py @@ -266,8 +266,8 @@ async def handle_index(request: web.Request): if request.app.is_upload_folder_quota_reached: message = "Server reached quota! Contact administrator." if request.app.upload_url in message: - url = message[message.find(request.app.upload_url) :] - message = message.replace(request.app.upload_url, f' {url}' if message: message += "

"