mirror of
https://github.com/gchq/CyberChef
synced 2026-01-05 18:13:15 +00:00
Fix where zipworker was using output presented result.
Now uses the raw dish value
This commit is contained in:
@@ -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});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user