Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/django_idom/http/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ async def web_modules_file(request: HttpRequest, file: str) -> HttpResponse:
"""Gets JavaScript required for IDOM modules at runtime. These modules are
returned from cache if available."""
web_modules_dir = IDOM_WED_MODULES_DIR.current
path = web_modules_dir.joinpath(*file.split("/")).absolute()
path = os.path.abspath(web_modules_dir.joinpath(*file.split("/")))

# Prevent attempts to walk outside of the web modules dir
if str(web_modules_dir) != os.path.commonpath((path, web_modules_dir)):
Expand Down