mirror of
https://github.com/gchq/CyberChef.git
synced 2024-09-28 06:21:30 +02:00
Fixed bug where input would not be loaded from deep links if a chrenc was not set
This commit is contained in:
parent
b92501ee35
commit
09fd333997
@ -517,11 +517,11 @@ class App {
|
||||
try {
|
||||
let inputVal;
|
||||
const inputChrEnc = this.manager.input.getChrEnc();
|
||||
const inputData = fromBase64(this.uriParams.input);
|
||||
const inputData = fromBase64(this.uriParams.input, null, "byteArray");
|
||||
if (inputChrEnc > 0) {
|
||||
inputVal= cptable.utils.decode(inputChrEnc, inputData);
|
||||
inputVal = cptable.utils.decode(inputChrEnc, inputData);
|
||||
} else {
|
||||
inputVal = Utils.arrayBufferToStr(inputData);
|
||||
inputVal = Utils.byteArrayToChars(inputData);
|
||||
}
|
||||
this.setInput(inputVal);
|
||||
} catch (err) {}
|
||||
|
Loading…
Reference in New Issue
Block a user