ruff: enable upgrade rule checks

This commit is contained in:
Jörg Thalheim
2023-08-27 10:46:53 +02:00
parent bac0942033
commit 9913a95cc2
3 changed files with 3 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ router = APIRouter()
async def root(path_name: str) -> Response:
if path_name == "":
path_name = "index.html"
filename = Path(os.path.normpath((asset_path() / path_name)))
filename = Path(os.path.normpath(asset_path() / path_name))
if not filename.is_relative_to(asset_path()):
# prevent directory traversal