This commit is contained in:
parent
d388537fb5
commit
284ef3d263
@ -273,9 +273,6 @@ async def handle_thumbnail(request: web.Request):
|
||||
|
||||
safe_path = pathlib.Path(path)
|
||||
|
||||
if not safe_path.exists():
|
||||
return web.Response(status=404, text="File not found.")
|
||||
|
||||
if not safe_path.is_file():
|
||||
return web.Response(status=400, text="Invalid file type.")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user