mirror of
https://github.com/gchq/CyberChef
synced 2025-01-01 07:18:47 +00: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
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue