mirror of
https://github.com/engineer-man/piston.git
synced 2025-06-07 18:56:26 +02:00
api: quote args when being executed
This commit is contained in:
parent
7b57bef167
commit
d529384f21
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class Job {
|
||||||
const proc_call = [
|
const proc_call = [
|
||||||
...prlimit,
|
...prlimit,
|
||||||
...unshare,
|
...unshare,
|
||||||
'bash',file, ...args
|
'bash',file, ...args.map(x=>`"${x}"`)
|
||||||
];
|
];
|
||||||
|
|
||||||
var stdout = '';
|
var stdout = '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue