Fix upload url replacement.
All checks were successful
RUpload build / Build (push) Successful in 59s
All checks were successful
RUpload build / Build (push) Successful in 59s
This commit is contained in:
parent
9209e43b8b
commit
36ef6d7e4d
@ -266,8 +266,8 @@ async def handle_index(request: web.Request):
|
|||||||
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 request.app.upload_url in message:
|
||||||
url = message[message.find(request.app.upload_url) :]
|
url = message[message.find(request.app.upload_url)+len(rquest.app.upload_url):]
|
||||||
message = message.replace(request.app.upload_url, f' <a href="{url}')
|
message = message.replace(request.app.upload_url, f" <a href=\"{url}")
|
||||||
message += f'">{url}</a>'
|
message += f'">{url}</a>'
|
||||||
if message:
|
if message:
|
||||||
message += "<br /><br />"
|
message += "<br /><br />"
|
||||||
|
Loading…
Reference in New Issue
Block a user