fix: prevent passing tainted env to subprocesses - close #1124

This commit is contained in:
Gabriel Saillard 2021-05-26 22:05:37 +02:00
parent 04d303f4a9
commit 9fbf0d2fb7
No known key found for this signature in database
GPG Key ID: 4F615B5FE436611A

View File

@ -228,7 +228,7 @@ app.on('ready', async () => {
// See #366
let cleanEnv = await require("shell-env")(settings.shell).catch(e => { throw e; });
Object.assign(cleanEnv, process.env, {
Object.assign(cleanEnv, {
TERM: "xterm-256color",
COLORTERM: "truecolor",
TERM_PROGRAM: "eDEX-UI",