1
0
mirror of https://github.com/danog/plotframes.git synced 2024-11-30 04:19:07 +01:00

V2.0.1, to avoid an absurd Command Injection

This commit is contained in:
Rodrigo Polo 2021-04-01 05:33:49 -06:00
parent b33f816c23
commit 6aef41c108
2 changed files with 7 additions and 1 deletions

View File

@ -418,6 +418,12 @@ function plotScript(input, cb, op){
} }
extend(options, op); extend(options, op);
// To prevent almost imposible Command Injection
if(options.terminal != 'windows' && options.terminal != 'x11'){
options.terminal = defterminal;
}
var script_str=''; var script_str='';
getFrames(input, options.progress, function(err, data){ getFrames(input, options.progress, function(err, data){

View File

@ -9,7 +9,7 @@
"gnuplot", "gnuplot",
"bitrate" "bitrate"
], ],
"version": "2.0.0", "version": "2.0.1",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git+https://github.com/rodrigopolo/plotframes.git" "url": "git+https://github.com/rodrigopolo/plotframes.git"