This commit is contained in:
parent
9600f64eb9
commit
49f69cb688
@ -265,10 +265,11 @@ async def handle_index(request: web.Request):
|
|||||||
message = request.query.get("message", "")
|
message = request.query.get("message", "")
|
||||||
if request.app.is_upload_folder_quota_reached:
|
if request.app.is_upload_folder_quota_reached:
|
||||||
message = "Server reached quota! Contact administrator."
|
message = "Server reached quota! Contact administrator."
|
||||||
if request.app.upload_url in message:
|
if "is available here: " in message:
|
||||||
url = message[message.find("here: ") + len("here: "):]
|
url = message[message.find("here: ") + len("here: "):]
|
||||||
message = message.replace("here: ", f"here: <a href=\"")
|
message = message[: message.find("here: ")+len("here: ")]
|
||||||
message += f'">{url}</a>'
|
message = += "<a href=\"{url}\">")
|
||||||
|
message += f"{url}</a>"
|
||||||
if message:
|
if message:
|
||||||
message += "<br /><br />"
|
message += "<br /><br />"
|
||||||
html_content = html_content.replace("[message]", message)
|
html_content = html_content.replace("[message]", message)
|
||||||
|
Loading…
Reference in New Issue
Block a user