Skip to content

Commit

Permalink
fix pre-commit issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rajithkrishnegowda committed Nov 4, 2024
1 parent 90da8f0 commit d09d08d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openfl/interface/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def cli(context, log_level, no_warnings):
log_file = os.path.normpath(log_file)
if not re.match(r"^logs/[\w\-.]+$", log_file) or ".." in log_file or log_file.startswith("/"):
raise ValueError("Invalid log file path")

# Ensure the log file is in the 'logs' directory
allowed_directory = Path("logs").resolve()
full_path = (allowed_directory / log_file).resolve()
Expand Down

0 comments on commit d09d08d

Please sign in to comment.