Skip to content

Commit 876da03

Browse files
committed
Guard against log injection
1 parent 9c58523 commit 876da03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/murfey/server/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1137,7 +1137,7 @@ async def request_spa_preprocessing(
11371137
)
11381138
except Exception as e:
11391139
log.warning(
1140-
f"Foil hole ID not found for foil hole {proc_file.foil_hole_id}: {e}",
1140+
f"Foil hole ID not found for foil hole {sanitise(str(proc_file.foil_hole_id))}: {e}",
11411141
exc_info=True,
11421142
)
11431143
foil_hole_id = None

0 commit comments

Comments
 (0)