Skip to content

Commit

Permalink
Merge branch '12-Nov-24' of https://github.com/tanwarsh/openfl into 1…
Browse files Browse the repository at this point in the history
…2-Nov-24
  • Loading branch information
tanwarsh committed Nov 18, 2024
2 parents a8a25b7 + 2c56964 commit 4f673d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openfl/interface/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ def cli(context, log_level, no_warnings):
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 4f673d1

Please sign in to comment.