From 6f5018d45ea254f6ed9ea92914608c966d78086a Mon Sep 17 00:00:00 2001 From: j433866 Date: Thu, 16 May 2019 11:59:25 +0100 Subject: [PATCH 1/2] Don't change option value if new value is blank --- src/web/HTMLIngredient.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/web/HTMLIngredient.mjs b/src/web/HTMLIngredient.mjs index d8ac9511..c996c51d 100755 --- a/src/web/HTMLIngredient.mjs +++ b/src/web/HTMLIngredient.mjs @@ -293,7 +293,9 @@ class HTMLIngredient { const op = el.parentNode.parentNode; const target = op.querySelectorAll(".arg")[this.target]; - target.value = el.childNodes[el.selectedIndex].getAttribute("populate-value"); + const popVal = el.childNodes[el.selectedIndex].getAttribute("populate-value"); + if (popVal !== "") target.value = popVal; + const evt = new Event("change"); target.dispatchEvent(evt); From 2be2c83f67b5b2570dec77b0c461db7c7b4958b5 Mon Sep 17 00:00:00 2001 From: j433866 Date: Tue, 21 May 2019 16:56:23 +0100 Subject: [PATCH 2/2] 8.31.4 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0c045d13..35f796f6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "cyberchef", - "version": "8.31.3", + "version": "8.31.4", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 4ae59d3c..6fce93c9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cyberchef", - "version": "8.31.3", + "version": "8.31.4", "description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.", "author": "n1474335 ", "homepage": "https://gchq.github.io/CyberChef",