mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-10 00:05:11 -04:00
Only operate on non-empty input
This commit is contained in:
parent
b950364606
commit
329d9a1c90
1 changed files with 17 additions and 16 deletions
|
@ -35,6 +35,7 @@ class XMLValidator extends Operation {
|
||||||
*/
|
*/
|
||||||
run(input, args) {
|
run(input, args) {
|
||||||
|
|
||||||
|
if (input)
|
||||||
try {
|
try {
|
||||||
// Overwrite error handler since the built-in one does not raise exceptions.
|
// Overwrite error handler since the built-in one does not raise exceptions.
|
||||||
(new DOMParser.DOMParser({errorHandler: {
|
(new DOMParser.DOMParser({errorHandler: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue