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:
parent
b33f816c23
commit
6aef41c108
6
main.js
6
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){
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user