mirror of
https://github.com/gchq/CyberChef.git
synced 2024-10-01 07:51:32 +02:00
Fix where zipworker was using output presented result.
Now uses the raw dish value
This commit is contained in:
parent
07021b8dd5
commit
97c218cb4c
@ -53,10 +53,10 @@ self.zipFiles = function(outputs, filename, fileExtension) {
|
|||||||
let output;
|
let output;
|
||||||
if (outputs[iNum].data === null) {
|
if (outputs[iNum].data === null) {
|
||||||
output = new Uint8Array(0);
|
output = new Uint8Array(0);
|
||||||
} else if (typeof outputs[iNum].data.result === "string") {
|
} else if (typeof outputs[iNum].data.dish.value === "string") {
|
||||||
output = new Uint8Array(Utils.strToArrayBuffer(outputs[iNum].data.result));
|
output = new Uint8Array(Utils.strToArrayBuffer(outputs[iNum].data.dish.value));
|
||||||
} else {
|
} else {
|
||||||
output = new Uint8Array(outputs[iNum].data.result);
|
output = new Uint8Array(outputs[iNum].data.dish.value);
|
||||||
}
|
}
|
||||||
zip.addFile(output, {filename: name});
|
zip.addFile(output, {filename: name});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user