mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 01:57:11 -05:00
Update backend/app/routers/prism_static.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -74,7 +74,6 @@ async def serve_prism_static_files(file_path: str):
|
|||||||
This endpoint handles all asset requests for the Prism Console UI.
|
This endpoint handles all asset requests for the Prism Console UI.
|
||||||
"""
|
"""
|
||||||
# Security: Prevent directory traversal
|
# Security: Prevent directory traversal
|
||||||
safe_path = Path(file_path).resolve()
|
|
||||||
requested_file = PRISM_DIR / file_path
|
requested_file = PRISM_DIR / file_path
|
||||||
|
|
||||||
# Ensure the requested file is within the prism directory
|
# Ensure the requested file is within the prism directory
|
||||||
|
|||||||
Reference in New Issue
Block a user