diff --git a/main.js b/main.js index bb8df95..47ab603 100644 --- a/main.js +++ b/main.js @@ -418,6 +418,12 @@ function plotScript(input, cb, op){ } extend(options, op); + + // To prevent almost imposible Command Injection + if(options.terminal != 'windows' && options.terminal != 'x11'){ + options.terminal = defterminal; + } + var script_str=''; getFrames(input, options.progress, function(err, data){ diff --git a/package.json b/package.json index 2495513..c633258 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "gnuplot", "bitrate" ], - "version": "2.0.0", + "version": "2.0.1", "repository": { "type": "git", "url": "git+https://github.com/rodrigopolo/plotframes.git"