Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrede committed Jun 17, 2024
1 parent b6f1404 commit d8a43a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fedn/network/api/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import uuid
from io import BytesIO

from flask import jsonify, send_from_directory
from flask import jsonify, safe_join, send_from_directory
from werkzeug.utils import secure_filename

from fedn.common.config import get_controller_config, get_network_config
Expand Down Expand Up @@ -377,7 +377,7 @@ def download_compute_package(self, name):
try:
data = self.control.get_compute_package(name)
# TODO: make configurable, perhaps in config.py or package.py
file_path = os.path.join("/app/client/package/", name)
file_path = safe_join("/app/client/package/", name)
with open(file_path, "wb") as fh:
fh.write(data)
# TODO: make configurable, perhaps in config.py or package.py
Expand Down

0 comments on commit d8a43a5

Please sign in to comment.