Browse Source

qml: strip whitespace of data pasted/scanned before processing

master
Sander van Grieken 2 years ago
parent
commit
5f2fee5184
  1. 1
      electrum/gui/qml/components/SendDialog.qml

1
electrum/gui/qml/components/SendDialog.qml

@ -24,6 +24,7 @@ ElDialog {
} }
function dispatch(data) { function dispatch(data) {
data = data.trim()
if (bitcoin.isRawTx(data)) { if (bitcoin.isRawTx(data)) {
txFound(data) txFound(data)
} else if (Daemon.currentWallet.isValidChannelBackup(data)) { } else if (Daemon.currentWallet.isValidChannelBackup(data)) {

Loading…
Cancel
Save