We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92c0e42 commit 83fcb8dCopy full SHA for 83fcb8d
src/django_idom/http/views.py
@@ -12,7 +12,7 @@ async def web_modules_file(request: HttpRequest, file: str) -> HttpResponse:
12
"""Gets JavaScript required for IDOM modules at runtime. These modules are
13
returned from cache if available."""
14
web_modules_dir = IDOM_WED_MODULES_DIR.current
15
- path = web_modules_dir.joinpath(*file.split("/")).absolute()
+ path = os.path.abspath(web_modules_dir.joinpath(*file.split("/")))
16
17
# Prevent attempts to walk outside of the web modules dir
18
if str(web_modules_dir) != os.path.commonpath((path, web_modules_dir)):
0 commit comments