mirror of
https://github.com/gchq/CyberChef.git
synced 2024-11-02 22:21:01 +01: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;
|
||||
if (outputs[iNum].data === null) {
|
||||
output = new Uint8Array(0);
|
||||
} else if (typeof outputs[iNum].data.result === "string") {
|
||||
output = new Uint8Array(Utils.strToArrayBuffer(outputs[iNum].data.result));
|
||||
} else if (typeof outputs[iNum].data.dish.value === "string") {
|
||||
output = new Uint8Array(Utils.strToArrayBuffer(outputs[iNum].data.dish.value));
|
||||
} else {
|
||||
output = new Uint8Array(outputs[iNum].data.result);
|
||||
output = new Uint8Array(outputs[iNum].data.dish.value);
|
||||
}
|
||||
zip.addFile(output, {filename: name});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user