Skip to content

Commit 065b336

Browse files
authored
Update grpc-ffmpeg.py to run commands with quotes
1 parent abaacc2 commit 065b336

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/grpc-ffmpeg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ async def ExecuteCommand(self, request, context):
6767
tokens[0] = os.path.join(BINARY_PATH_PREFIX, tokens[0])
6868

6969
# Reconstruct the command
70-
command = shlex.join(tokens)
70+
sanitized_command = shlex.join(tokens)
7171

7272
process = await asyncio.create_subprocess_shell(
7373
command,
@@ -223,4 +223,4 @@ async def shutdown(signame):
223223

224224
if __name__ == '__main__':
225225
handle_signals()
226-
asyncio.run(ffmpeg_server())
226+
asyncio.run(ffmpeg_server())

0 commit comments

Comments
 (0)