Browse Source
# Normalize paths to ensure the same drive letter full_output_dir = os.path.normpath(full_output_dir) output_dir = os.path.normpath(output_dir) # Extract drive letters from paths drive_full_output_dir = os.path.splitdrive(os.path.abspath(full_output_dir))[0] drive_output_dir = os.path.splitdrive(os.path.abspath(output_dir))[0] if drive_full_output_dir != drive_output_dir: return web.Response(status=403) output_dir = full_output_dirpull/2590/head
vxkj1211
10 months ago
committed by
GitHub
1 changed files with 8 additions and 4 deletions
Loading…
Reference in new issue