Skip to content

Commit 7a783a7

Browse files
committed
Sanitise file path
1 parent 008e62b commit 7a783a7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/murfey/server/api/workflow_sim.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
from murfey.server import _transport_object
88
from murfey.server.api.auth import validate_instrument_token
9+
from murfey.util import sanitise_path
910

1011
logger = logging.getLogger("murfey.server.api.workflow_sim")
1112

@@ -27,7 +28,9 @@ def request_sim_processing(session_id: int, sim_data: SIMDataFile):
2728
return None
2829

2930
# Construct message and submit it to 'processing_recipe'
30-
logger.info(f"Submitting request to process the cryoSIM file {sim_data.file}")
31+
logger.info(
32+
f"Submitting request to process the cryoSIM file {sanitise_path(sim_data.file)}"
33+
)
3134
recipe = {
3235
# Placeholder; fields will be populated once service is set up
3336
"recipes": ["sim-process-data"],

0 commit comments

Comments
 (0)