mirror of
https://github.com/mudler/LocalAI.git
synced 2026-04-30 23:31:00 -05:00
fix: do not pass by environ to ffmpeg (#5871)
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
committed by
GitHub
parent
eae4ca08da
commit
05bf2493a5
+1
-1
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
func ffmpegCommand(args []string) (string, error) {
|
||||
cmd := exec.Command("ffmpeg", args...) // Constrain this to ffmpeg to permit security scanner to see that the command is safe.
|
||||
cmd.Env = os.Environ()
|
||||
cmd.Env = []string{}
|
||||
out, err := cmd.CombinedOutput()
|
||||
return string(out), err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user