mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 15:26:16 -04:00
Improve autobake further to behave more like it did before.
Improve generation of state URI.
This commit is contained in:
parent
82183bf204
commit
8e9717906f
5 changed files with 59 additions and 38 deletions
|
@ -459,6 +459,15 @@ class InputWaiter {
|
|||
value: value
|
||||
}
|
||||
});
|
||||
let includeInput = false;
|
||||
const recipeStr = toBase64(value, "A-Za-z0-9+/"); // B64 alphabet with no padding
|
||||
if (recipeStr.length > 0 && recipeStr.length <= 68267) {
|
||||
includeInput = true;
|
||||
}
|
||||
this.setUrl({
|
||||
includeInput: includeInput,
|
||||
input: recipeStr
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1214,7 +1223,7 @@ class InputWaiter {
|
|||
* @param {string} urlData.input
|
||||
*/
|
||||
setUrl(urlData) {
|
||||
this.app.updateUrl(urlData.includeInput, urlData.input);
|
||||
this.app.updateTitle(urlData.includeInput, urlData.input, true);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue