Skip to content

Commit

Permalink
Assert saved paths are in job folder. #342
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileSonneveld committed Dec 16, 2024
1 parent 80a47ff commit 58b74c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openeo_driver/save_result.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ def create_flask_response(self) -> Response:
asset = assets.popitem()[1]
path = Path(asset["href"])
mimetype = asset.get("type")
assert path.relative_to(tmp_dir)
return send_from_directory(path.parent, path.name, mimetype=mimetype)


Expand Down

0 comments on commit 58b74c5

Please sign in to comment.