mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
Always generate a PNG if the format isn't SVG
This commit is contained in:
@@ -85,7 +85,7 @@ class GenerateQRCode extends Operation {
|
||||
outputData += String.fromCharCode(parseInt(data[i]));
|
||||
}
|
||||
return outputData;
|
||||
} else if (format === "PNG") {
|
||||
} else {
|
||||
let dataURI = "data:";
|
||||
const type = Magic.magicFileType(data);
|
||||
if (type && type.mime.indexOf("image") === 0){
|
||||
|
||||
Reference in New Issue
Block a user