mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
Fix invalid file type error
This commit is contained in:
@@ -51,7 +51,7 @@ class ParseQRCode extends Operation {
|
||||
async run(input, args) {
|
||||
const [normalise] = args;
|
||||
|
||||
if (!isImage(input)) {
|
||||
if (!isImage(new Uint8Array(input))) {
|
||||
throw new OperationError("Invalid file type.");
|
||||
}
|
||||
return await parseQrCode(input, normalise);
|
||||
|
||||
Reference in New Issue
Block a user