Skip to content

Commit 9ea7241

Browse files
committed
Sanitise the paths
1 parent dd5d434 commit 9ea7241

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/murfey/server/gain.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,5 @@ async def prepare_eer_gain(
132132
)
133133
return None, None
134134
# Also copy the gain as a .gain file
135-
shutil.copy(gain_path, gain_out.with_suffix(".gain"))
135+
shutil.copy(secure_path(gain_path), secure_path(gain_out.with_suffix(".gain")))
136136
return gain_out, None

0 commit comments

Comments
 (0)