mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
Fix where zipworker was using output presented result.
Now uses the raw dish value
This commit is contained in:
parent
07021b8dd5
commit
97c218cb4c
1 changed files with 3 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue