From 5f2fee5184b7e641236cd7838f272df39587f9dc Mon Sep 17 00:00:00 2001 From: Sander van Grieken Date: Sun, 9 Jul 2023 11:55:06 +0200 Subject: [PATCH] qml: strip whitespace of data pasted/scanned before processing --- electrum/gui/qml/components/SendDialog.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/electrum/gui/qml/components/SendDialog.qml b/electrum/gui/qml/components/SendDialog.qml index a887b4e41..d54d2a385 100644 --- a/electrum/gui/qml/components/SendDialog.qml +++ b/electrum/gui/qml/components/SendDialog.qml @@ -24,6 +24,7 @@ ElDialog { } function dispatch(data) { + data = data.trim() if (bitcoin.isRawTx(data)) { txFound(data) } else if (Daemon.currentWallet.isValidChannelBackup(data)) {