mirror of
https://github.com/gchq/CyberChef
synced 2025-01-04 00:38:41 +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 {
|
try {
|
||||||
let inputVal;
|
let inputVal;
|
||||||
const inputChrEnc = this.manager.input.getChrEnc();
|
const inputChrEnc = this.manager.input.getChrEnc();
|
||||||
const inputData = fromBase64(this.uriParams.input);
|
const inputData = fromBase64(this.uriParams.input, null, "byteArray");
|
||||||
if (inputChrEnc > 0) {
|
if (inputChrEnc > 0) {
|
||||||
inputVal= cptable.utils.decode(inputChrEnc, inputData);
|
inputVal = cptable.utils.decode(inputChrEnc, inputData);
|
||||||
} else {
|
} else {
|
||||||
inputVal = Utils.arrayBufferToStr(inputData);
|
inputVal = Utils.byteArrayToChars(inputData);
|
||||||
}
|
}
|
||||||
this.setInput(inputVal);
|
this.setInput(inputVal);
|
||||||
} catch (err) {}
|
} catch (err) {}
|
||||||
|
|
Loading…
Reference in a new issue