Skip to content

Commit

Permalink
fix: correct directory transversal
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Nov 27, 2024
1 parent db0c1cb commit 1be6635
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate_web/hetzner.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def get_directory_summary(
if attr.st_mode is None or attr.st_size is None or attr.st_mtime is None:
raise ValueError(f"Incomplete attributes {attr}")
if stat.S_ISDIR(attr.st_mode):
ftp.chdir(attr.filename)
ftp.chdir(dirname)
dir_size, dir_mtime = get_directory_summary(
ftp, attr.filename, dirstat=attr
)
Expand Down

0 comments on commit 1be6635

Please sign in to comment.