processes() fixed issue truncated params
This commit is contained in:
parent
8d80e97e05
commit
40b16dac9a
@ -492,7 +492,7 @@ function processes(callback) {
|
|||||||
function checkColumn(i) {
|
function checkColumn(i) {
|
||||||
offset = offset2;
|
offset = offset2;
|
||||||
if (parsedhead[i]) {
|
if (parsedhead[i]) {
|
||||||
offset2 = line.substring(parsedhead[i].to + offset, 1000).indexOf(' ');
|
offset2 = line.substring(parsedhead[i].to + offset, 10000).indexOf(' ');
|
||||||
} else {
|
} else {
|
||||||
offset2 = 10000;
|
offset2 = 10000;
|
||||||
}
|
}
|
||||||
@ -525,7 +525,9 @@ function processes(callback) {
|
|||||||
checkColumn(11);
|
checkColumn(11);
|
||||||
const user = line.substring(parsedhead[11].from + offset, parsedhead[11].to + offset2).trim();
|
const user = line.substring(parsedhead[11].from + offset, parsedhead[11].to + offset2).trim();
|
||||||
checkColumn(12);
|
checkColumn(12);
|
||||||
const fullcommand = line.substring(parsedhead[12].from + offset, parsedhead[12].to + offset2).trim().replace(/\[/g, '').replace(/]/g, '');
|
let fullcommand = line.substring(parsedhead[12].from + offset, parsedhead[12].to + offset2).trim();
|
||||||
|
if (fullcommand.substr(0, 1) === '[') { fullcommand = fullcommand.substring(1); }
|
||||||
|
if (fullcommand.substr(fullcommand.length - 1) === ']') { fullcommand = fullcommand.slice(0, -1); }
|
||||||
let cmdPath = '';
|
let cmdPath = '';
|
||||||
let command = '';
|
let command = '';
|
||||||
let params = '';
|
let params = '';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user