mirror of
https://github.com/gchq/CyberChef
synced 2025-12-05 23:53:27 +00:00
Fixed bug in firefox where recipes containing an = character would not load from the URL
This commit is contained in:
@@ -400,7 +400,12 @@ App.prototype.addFavourite = function(name) {
|
||||
*/
|
||||
App.prototype.loadURIParams = function() {
|
||||
// Load query string or hash from URI (depending on which is populated)
|
||||
const params = window.location.search || window.location.hash;
|
||||
// We prefer getting the hash by splitting the href rather than referencing
|
||||
// location.hash as some browsers (Firefox) automatically URL decode it,
|
||||
// which cause issues.
|
||||
const params = window.location.search ||
|
||||
window.location.href.split("#")[1] ||
|
||||
window.location.hash;
|
||||
this.uriParams = Utils.parseURIParams(params);
|
||||
|
||||
// Pause auto-bake while loading but don't modify `this.autoBake_`
|
||||
|
||||
Reference in New Issue
Block a user