2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-14 23:33:25 +00:00

Input and Output character encodings are now stored in the URL, allowing for accuate deeplinking

This commit is contained in:
n1474335
2022-09-16 19:24:57 +01:00
parent a141873db8
commit a07b8f693b
5 changed files with 51 additions and 30 deletions

View File

@@ -138,9 +138,14 @@ class ControlsWaiter {
}
}
const inputChrEnc = this.manager.input.inputChrEnc;
const outputChrEnc = this.manager.output.outputChrEnc;
const params = [
includeRecipe ? ["recipe", recipeStr] : undefined,
includeInput && input.length ? ["input", Utils.escapeHtml(input)] : undefined,
inputChrEnc !== 0 ? ["ienc", inputChrEnc] : undefined,
outputChrEnc !== 0 ? ["oenc", outputChrEnc] : undefined
];
const hash = params