Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit 5d0dae0

Browse files
authored
Merge pull request #11 from eelwk/master
adding escape for single quote in parameters
2 parents a5b7453 + a2c4c9b commit 5d0dae0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Encoding/Encoding/VodFunctions/ffmpeg-encoding.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ public static async Task<IActionResult> Run(
118118

119119
process.StartInfo.Arguments = (ffmpegArguments ?? " -i {input} {output} -y")
120120
.Replace("{input}", "\"" + pathLocalInput + "\"")
121-
.Replace("{output}", "\"" + pathLocalOutput + "\"");
122-
121+
.Replace("{output}", "\"" + pathLocalOutput + "\"")
122+
.Replace("'", "\"");
123123

124124
log.LogInformation(process.StartInfo.Arguments);
125125

0 commit comments

Comments
 (0)